Skip to content
Operator has no release yet: these pages describe unreleased main.

API Reference

Package v1alpha1 contains the v1alpha1 API of the crewlet.ai group: a Crewlet company and its org chart as Kubernetes objects.

Each typed field maps onto one field of Crewlet’s company document, which its doc comment names; enum values are PascalCase here and Crewlet’s own spelling there. Engine tuning without a typed field passes through Company.spec.engineConfig.

No field holds a credential. Every position Crewlet marks as a credential in the company document is filled from a Secret through a SecretKeyReference or a SecretReference (NamespacedSecretKeyReference and NamespacedSecretReference on the cluster-scoped EngineClass), or, for a seat’s account the engine creates under an Integration with provisioning Engine, is a value the engine mints into its own store (ProvisionedCredential). docs/concepts/credentials.md in the repository maps every position to its field.

APIExposure is how a company’s engine API is reached. Every request needs a credential, but for the probes, the vendors’ webhooks and a box’s per-run endpoints: a person’s session, signed in at the dashboard, or a bearer token, such as the one the operator generates per company and publishes in a Secret named by the Company’s status.apiAccessSecretRef.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
mode APIExposureModemode is how the API is reached.ClusterInternalEnum: [ClusterInternal Gateway Ingress]
Optional: {}
gateway GatewayExposuregateway is the Gateways to attach to, for mode Gateway.Optional: {}
ingress IngressExposureingress is the Ingress settings, for mode Ingress.Optional: {}
hostname stringhostname is the API’s host name, as a template with the variables and
rules of webhooks.hostname, and one rule more.
It is also where a browser reaches the engine (the Company’s
status.endpoints.dashboardBaseURL, unless the Company states its own),
and an origin the engine accepts a person’s write from, and Crewlet
refuses to start on a browser’s address whose host ends in a label
that is a number: a browser reads such a host as an IPv4 address and
rewrites it before it sends it. So its last label may not be one
({{uid}}.123, {{uid}}.0x1f). A last
label a variable fills is a number only for some Companies: one whose
namespace is a number (4711, 0x1f) under {{name}}.{{namespace}}, or
whose namespace or name makes one with the template’s own characters
beside it ({{uid}}.0x{{name}} for a Company named cafe; a Company’s
name begins with a letter, so it is never a number alone). That
Company’s engine is held back, with RuntimeReady=False AddressRefused,
rather than started to refuse. Ending the template in a domain of your
own, as in {{name}}.{{namespace}}.crewlet.example.com, leaves it to no
Company.
MaxLength: 253
MinLength: 1
Optional: {}

Underlying type: string

APIExposureMode is how a company’s engine API is reached from outside its namespace.

Validation:

  • Enum: [ClusterInternal Gateway Ingress]

Appears in:

FieldDescription
ClusterInternalAPIExposureClusterInternal reaches the API only through the company’s
Service, from inside the cluster.
GatewayAPIExposureGateway also routes a host name to the API with an
HTTPRoute. Attach it to an internal Gateway: the API includes the
company’s configuration and secret store.
IngressAPIExposureIngress does the same with an Ingress.

AWSIntegration connects a company’s AWS account, in which the engine gives each agent Seat whose spec.integrations.aws is enabled its own IAM role, at that seat’s level, through the provisioner role of one CloudFormation stack the engine renders. The engine signs in through IAM Roles Anywhere with the certificate authority this Integration references, and issues each agent’s session when a run or a tool needs it, so no AWS credential is stored. It maps onto Crewlet’s integrations.aws, so the Integration’s provisioning is Engine. AWS delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
slug stringslug is the short name every Crewlet name in the account carries, as
crewlet-: the stack, its roles and its policies. It cannot change
once the stack exists. Crewlet’s provisioning.slug.
MaxLength: 20
MinLength: 1
Pattern: ^[a-z0-9]([a-z0-9-]\{0,18\}[a-z0-9])?$
Required: {}
homeRegion stringhomeRegion is the Region code the stack, its trust anchor and its
profiles live in, such as eu-west-1, where the engine signs in.
Crewlet’s provisioning.home_region.
MaxLength: 32
MinLength: 6
Pattern: ^[a-z]\{2\}(-gov)?-[a-z]+-[0-9]$
Required: {}
regions string arrayregions are the Region codes agents may work in; the stack’s
permissions boundary refuses them every other Region, global services
aside. Unset is the home Region and us-east-1. A changed list reaches
AWS when the stack is deployed again. Crewlet’s provisioning.regions.
MaxItems: 64
items:MaxLength: 32
items:MinLength: 6
items:Pattern: ^[a-z]\{2\}(-gov)?-[a-z]+-[0-9]$
Optional: {}
iamRead booleaniamRead lets every agent that is on read the account’s IAM users,
groups, roles and policies. Unset is false, since it shows the people
in the account. Crewlet’s provisioning.iam_read.
Optional: {}
atlasRead booleanatlasRead adds a read-only role for the atlas to the stack the engine
renders, which the engine signs in as to list what the account runs:
its Regions in use, instances, databases, load balancers, queues,
bucket names and public DNS. Unset is false. Changing it changes the
stack: deploy it again, and set connection to the output it prints,
which holds two more ARNs while this is true. No agent depends on it.
Crewlet’s provisioning.atlas_read.
Optional: {}
certificateAuthoritySecretRef SecretKeyReferencecertificateAuthoritySecretRef is the Secret key holding the engine’s
certificate authority: its P-256 private key (an EC PRIVATE KEY PEM
block), then its self-signed CA certificate, whose common name matches
crewlet-[a-z0-9-]{1,53}. The stack’s trust anchor holds only the
certificate; the key can sign in as the provisioner. Crewlet’s
provisioning.certificate_authority, a credential position.
Required: {}
connection stringconnection is the stack’s CrewletConnection output, as the stack
prints it: the trust anchor, the provisioner’s profile and role, the
agents’ profile and the broker role, then the atlas’s profile and role
where the stack holds them (atlasRead), joined by commas with no space.
The engine checks that they are one stack’s, in one account, with the
trust anchor and profiles in the home Region. Until it is set, no
agent’s role is made. Crewlet’s provisioning.connection.
MaxLength: 2048
MinLength: 1
Pattern: ^arn:aws[a-z-]*:rolesanywhere:[a-z0-9-]+:[0-9]\{12\}:trust-anchor/[0-9a-f-]\{36\},arn:aws[a-z-]*:rolesanywhere:[a-z0-9-]+:[0-9]\{12\}:profile/[0-9a-f-]\{36\},arn:aws[a-z-]*:iam::[0-9]\{12\}:role/crewlet/[a-z0-9-]+/crewlet-[a-z0-9-]+-provisioner,arn:aws[a-z-]*:rolesanywhere:[a-z0-9-]+:[0-9]\{12\}:profile/[0-9a-f-]\{36\},arn:aws[a-z-]*:iam::[0-9]\{12\}:role/crewlet/[a-z0-9-]+/crewlet-[a-z0-9-]+-broker(,arn:aws[a-z-]*:rolesanywhere:[a-z0-9-]+:[0-9]\{12\}:profile/[0-9a-f-]\{36\},arn:aws[a-z-]*:iam::[0-9]\{12\}:role/crewlet/[a-z0-9-]+/crewlet-[a-z0-9-]+-atlas)?$
Optional: {}

Underlying type: string

AWSLevel is what a seat’s IAM role may do in the company’s account. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer), least access first; a level attaches its own policy and every lower one. Read describes and lists, with no object, parameter or secret contents; Operate adds starting, stopping, scaling, invoking and S3 object reads and writes; Administer adds managing those services whole, which can leave access behind, and granting it needs a fresh sign-in on the dashboard.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

AWSSeatIntegration is a seat’s own IAM role in the company’s AWS account. It maps onto Crewlet’s role integrations.aws and needs the company’s AWS Integration, under which the engine makes the role and attaches its level’s policies. The engine issues the seat’s session when a run or a tool needs it and never stores it, so no Seat names an AWS credential.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat has its own IAM role. False attaches AWS’s
AWSDenyAll policy and detaches its levels; the role and its CloudTrail
history stay. Crewlet’s enabled.
Required: {}
level AWSLevellevel is what the role may do. Unset is Read. Crewlet’s level.Enum: [Read Operate Administer]
Optional: {}

AdMobIntegration lets agent seats read and change the company’s AdMob app monetization through the engine’s tools. Google refuses service accounts at AdMob, so a person who manages the AdMob account signs in with Google once, on the engine’s dashboard, as the company’s own OAuth client: its oauth, or else the Google Cloud Integration’s signInClient. The engine seals and renews that grant and makes every agent’s call through it, held to the seat’s level and accounts. It maps onto Crewlet’s integrations.admob, which it turns on, and needs no Google Cloud Integration where it names its own oauth. The grant never reaches the document: the one credential here is the OAuth client’s secret. The engine creates nothing at AdMob for a seat and AdMob delivers nothing to the engine, so the Integration’s provisioning is External and it has no webhook. An empty block is a setting of its own: every account, signed in as signInClient.

Appears in:

FieldDescriptionDefaultValidation
oauth GoogleOAuthClientoauth is the OAuth client the AdMob sign-in alone is made as, a Web
application in a Google Cloud project the company controls, in place of
the Google Cloud Integration’s signInClient. Unset, AdMob signs in as
signInClient; with neither, the engine’s dry run refuses the block,
Invalid on this Integration. The AdSense Integration may name the same
client. Crewlet’s oauth.
Optional: {}
accounts string arrayaccounts are the AdMob publisher IDs agents may be given, such as
pub-1234567890123456, each once. Unset is every account the person who
signs in reaches. Crewlet’s accounts.
MaxItems: 50
items:MaxLength: 20
items:MinLength: 20
items:Pattern: ^pub-[0-9]\{16\}$
Optional: {}
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats, in this namespace, an agent’s held
acts, the changes that cannot be undone, are routed to first. Only an
administrator answers one, at a fresh sign-in; unset asks every
administrator. Crewlet’s approvers, which names a seat by its handle.
MaxItems: 64
Optional: {}

Underlying type: string

AdMobLevel is what a seat may do in each of its AdMob accounts, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read reads accounts, apps, ad units, mediation and the reports, changing nothing; Operate adds creating apps, ad units and ad unit mappings and changing mediation groups and A/B experiments, at once and recorded; Administer adds asking an administrator to approve each change that cannot be undone, such as linking an app to its store listing or removing a mediation line. Raised on the dashboard, Operate and Administer ask for a fresh sign-in there; at either, the company’s Google sign-in is made again to allow changes. The role of the person who signed in is AdMob’s own ceiling beside the level, for every seat alike.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

AdMobSeatIntegration is a seat’s access to the company’s AdMob accounts. It maps onto Crewlet’s role integrations.admob and needs the company’s AdMob Integration. Every seat’s call goes as the one grant a person signed in with, so nothing at Google tells two seats apart: the engine holds each call to the seat’s level and accounts before Google is asked, and no Seat names an AdMob credential.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may reach AdMob. False takes its access
away at once. Crewlet’s enabled.
Required: {}
level AdMobLevellevel is what the seat may do in each of its accounts. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
accounts string arrayaccounts are the AdMob publisher IDs the seat may reach, such as
pub-1234567890123456, each within the AdMob Integration’s accounts
where it lists them: Crewlet refuses another, which the engine’s dry
run reports as Invalid on the Seat. Required while the seat is on. At
most 50, the Integration’s own bound, held here where it lists none.
Crewlet’s accounts.
MaxItems: 50
items:MaxLength: 20
items:MinLength: 20
items:Pattern: ^pub-[0-9]\{16\}$
Optional: {}

AdSenseIntegration lets agent seats read and change the company’s AdSense website monetization through the engine’s tools. Google refuses service accounts at AdSense, so a person who manages the AdSense account signs in with Google once, on the engine’s dashboard, as the company’s own OAuth client: its oauth, or else the Google Cloud Integration’s signInClient. The engine seals and renews that grant and makes every agent’s call through it, held to the seat’s level and accounts. It maps onto Crewlet’s integrations.adsense, which it turns on, and needs no Google Cloud Integration where it names its own oauth. The grant never reaches the document: the one credential here is the OAuth client’s secret, which AdMob’s may share. The engine creates nothing at AdSense for a seat and AdSense delivers nothing to the engine, so the Integration’s provisioning is External and it has no webhook. An empty block is a setting of its own: every account, signed in as signInClient.

Appears in:

FieldDescriptionDefaultValidation
oauth GoogleOAuthClientoauth is the OAuth client the AdSense sign-in alone is made as, a Web
application in a Google Cloud project the company controls, in place of
the Google Cloud Integration’s signInClient. Unset, AdSense signs in as
signInClient; with neither, the engine’s dry run refuses the block,
Invalid on this Integration. The AdMob Integration may name the same
client. Crewlet’s oauth.
Optional: {}
accounts string arrayaccounts are the AdSense publisher IDs agents may be given, such as
pub-1234567890123456, each once. Unset is every account the person who
signs in reaches. Crewlet’s accounts.
MaxItems: 50
items:MaxLength: 20
items:MinLength: 20
items:Pattern: ^pub-[0-9]\{16\}$
Optional: {}
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats, in this namespace, an agent’s held
acts, the changes visitors see and those that cannot be undone, are
routed to first. Only an administrator answers one, at a fresh
sign-in; unset asks every administrator. Crewlet’s approvers, which
names a seat by its handle.
MaxItems: 64
Optional: {}

Underlying type: string

AdSenseLevel is what a seat may do in each of its AdSense accounts, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read reads accounts, sites, ad clients, ad units, channels, alerts, policy issues, payments, ad code and the reports, changing nothing; Operate adds creating ad units and custom channels and renaming, archiving or turning them on, at once and recorded, and asking an administrator to approve each change visitors see, a live ad unit’s size or type or a platform site’s review; Administer adds asking an administrator to approve each change that cannot be undone or sets up accounts, such as deleting a custom channel or moving a site to another revenue group. Raised on the dashboard, Operate and Administer ask for a fresh sign-in there; at either, the company’s Google sign-in is made again to allow changes.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

AdSenseSeatIntegration is a seat’s access to the company’s AdSense accounts. It maps onto Crewlet’s role integrations.adsense and needs the company’s AdSense Integration. Every seat’s call goes as the one grant a person signed in with, so nothing at Google tells two seats apart: the engine holds each call to the seat’s level and accounts before Google is asked, and no Seat names an AdSense credential.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may reach AdSense. False takes its access
away at once. Crewlet’s enabled.
Required: {}
level AdSenseLevellevel is what the seat may do in each of its accounts. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
accounts string arrayaccounts are the AdSense publisher IDs the seat may reach, such as
pub-1234567890123456, each within the AdSense Integration’s accounts
where it lists them: Crewlet refuses another, which the engine’s dry
run reports as Invalid on the Seat. Required while the seat is on. At
most 50, the Integration’s own bound, held here where it lists none.
Crewlet’s accounts.
MaxItems: 50
items:MaxLength: 20
items:MinLength: 20
items:Pattern: ^pub-[0-9]\{16\}$
Optional: {}

Underlying type: string

AnswerFormat is how Ask Crewlet lays an answer out. It maps onto Crewlet’s assistant.instructions.format (Lead is lead, Lists lists, TLDR tldr).

Validation:

  • Enum: [Lead Lists TLDR]

Appears in:

FieldDescription
LeadAnswerFormatLead puts the answer first, in plain sentences.
ListsAnswerFormatLists uses bullets and tables where they help.
TLDRAnswerFormatTLDR opens with a one-line TL;DR.

Underlying type: string

AnswerLength is how long Ask Crewlet’s answers run. It maps onto Crewlet’s assistant.instructions.length (Brief is brief, Balanced balanced, Detailed detailed).

Validation:

  • Enum: [Brief Balanced Detailed]

Appears in:

FieldDescription
BriefAnswerLengthBrief is a few sentences.
BalancedAnswerLengthBalanced is a short paragraph or list.
DetailedAnswerLengthDetailed adds the reasons and relevant detail.

AppStoreConnectConnection is one App Store Connect team: the issuer its agents’ keys sign in with. It maps onto one entry of Crewlet’s connections.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the connection’s id, by which a call that names no app names
its team where the company connects several: lowercase letters, digits
and hyphens, starting with a letter. Crewlet’s key of the entry in
connections.
MaxLength: 32
MinLength: 1
Pattern: ^[a-z][a-z0-9-]\{0,31\}$
Required: {}
issuerID stringissuerID is the team’s issuer ID, a UUID shown above the keys on Users
and Access, Integrations, App Store Connect API. Crewlet’s
issuer_id.
MaxLength: 36
MinLength: 36
Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Required: {}

AppStoreConnectIntegration connects a company’s App Store Connect teams. Each agent signs every call it makes through Crewlet’s own tools with its own verified team key, which a person hands in on the integration’s Agents tab in the engine’s dashboard; the company holds no key, so the Integration names only each team’s issuer, and its provisioning stays unset. A Seat’s apps are chosen among the apps of the connected teams. It maps onto Crewlet’s integrations.app_store_connect, which it turns on. App Store Connect delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats asked first about a reply, a
submission, a price or an account change an agent asks for. Only an
administrator answers, at a fresh sign-in; unset asks every
administrator. Crewlet’s approvers, which names a Seat by its handle;
the engine’s dry run refuses an Agent seat.
MaxItems: 32
Optional: {}
connections AppStoreConnectConnection arrayconnections are the teams the agents work in, each under its name.
Crewlet’s connections, a mapping keyed by the name.
MaxItems: 16
MinItems: 1
Required: {}

Underlying type: string

AppStoreConnectLevel is what a seat may do through the engine’s App Store Connect tools on its apps, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read reads apps, listings, reviews, TestFlight and reports; Operate adds changes nobody outside the team sees at once (drafts, internal testing), and asking an administrator for anything customers or external testers see; Administer adds asking for the account changes and deletes the seat’s own key may make (certificates, devices, profiles). A change only Apple’s Admin role may make is refused: Crewlet holds no Admin key, so a person makes it in App Store Connect.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

AppStoreConnectSeatIntegration is a seat’s access to App Store Connect. It maps onto Crewlet’s role integrations.app_store_connect and needs the company’s App Store Connect Integration. The engine signs each call the seat asks for, within its level and apps, with the seat’s own team key: a person makes it at Apple with the role the level needs and hands it in with Set up identity on the integration’s Agents tab in the engine’s dashboard, which seals it, so no Secret holds it. Until the engine has verified the key, the seat makes no call. A call customers or external testers would see, or an account change, is held for an administrator.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may use App Store Connect through the
engine’s tools. Crewlet’s enabled.
Required: {}
level AppStoreConnectLevellevel is what the seat may do on its apps. Unset is Read. Crewlet’s
level.
Enum: [Read Operate Administer]
Optional: {}
apps string arrayapps are the Apple IDs, each the app’s digits, of the apps the seat
may touch, in the team its own key is in. Required while the seat is
on. Crewlet’s apps.
MaxItems: 128
items:MaxLength: 20
items:MinLength: 1
items:Pattern: ^[0-9]+$
Optional: {}
teamResources booleanteamResources lets the seat reach, within its level, the team’s
resources no app owns: users, devices, certificates, profiles, sandbox
testers and reports across apps. Unset is false. Crewlet’s
team_resources.
Optional: {}

AppleAdsConnection is one Apple Ads API user: its organization, the client credentials Apple shows under Account Settings, API, and its private key. It maps onto one entry of Crewlet’s connections.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the connection’s id: lowercase letters, digits and hyphens,
starting with a letter. Crewlet’s key of the entry in connections.
MaxLength: 32
MinLength: 1
Pattern: ^[a-z][a-z0-9-]\{0,31\}$
Required: {}
orgID stringorgID is the organization’s ID, its digits, shown beside the account
name in Apple Ads. When set, the engine checks that the API user
answers it. Crewlet’s org_id.
MaxLength: 20
MinLength: 1
Pattern: ^[0-9]+$
Optional: {}
clientID stringclientID is the API user’s client ID, SEARCHADS. followed by an
identifier, shown under Account Settings, API once its public key is
uploaded. No two connections share one. Crewlet’s client_id.
MaxLength: 74
MinLength: 11
Pattern: ^SEARCHADS\.[0-9A-Za-z-]+$
Required: {}
teamID stringteamID is the API user’s team ID, SEARCHADS. followed by an
identifier, shown beside the client ID. Crewlet’s team_id.
MaxLength: 74
MinLength: 11
Pattern: ^SEARCHADS\.[0-9A-Za-z-]+$
Required: {}
keyID stringkeyID is the uploaded public key’s ID, shown beside the client ID: one
word, as Apple shows it. Crewlet’s key_id.
MaxLength: 128
MinLength: 1
Pattern: ^[^\s]+$
Required: {}
privateKeySecretRef SecretKeyReferenceprivateKeySecretRef is the Secret key holding the API user’s private
key whose public half was uploaded: the PEM block from BEGIN EC
PRIVATE KEY to END EC PRIVATE KEY that openssl ecparam wrote, or the
same P-256 key as one PKCS#8 block. Apple keeps no copy. No other field
of the company may reference the same Secret key: the engine’s dry run
refuses one. Crewlet’s private_key, a credential position.
Required: {}

AppleAdsIntegration connects a company’s Apple Ads organizations through the Apple Ads Platform API. The engine holds each API user’s private key and makes every call for the agents through Crewlet’s own tools. No seat holds a key or a token and no account is made for one, so the Integration’s provisioning stays unset. It maps onto Crewlet’s integrations.apple_ads, which it turns on. Apple Ads delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats asked first about a spend, a
creative or an account change an agent asks for. Only an
administrator answers, at a fresh sign-in; unset asks every
administrator. Crewlet’s approvers, which names a Seat by its handle;
the engine’s dry run refuses an Agent seat.
MaxItems: 32
Optional: {}
adAccounts string arrayadAccounts are the IDs, each the ad account’s digits, of the ad
accounts agents may be given; every Seat’s adAccounts are among them.
Unset is every ad account the connections’ API users reach. Crewlet’s
ad_accounts.
MaxItems: 200
items:MaxLength: 20
items:MinLength: 1
items:Pattern: ^[0-9]+$
Optional: {}
connections AppleAdsConnection arrayconnections are the API users the engine signs in as, each under its
name. Crewlet’s connections, a mapping keyed by the name.
MaxItems: 16
MinItems: 1
Required: {}
spend GrowthSpendspend caps each ad account’s daily capacity, in its own currency. An
ad account without both caps refuses every spend call. Crewlet’s
spend.
MinProperties: 1
Optional: {}

Underlying type: string

AppleAdsLevel is what a seat may do through the engine’s Apple Ads tools on its ad accounts, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read reads campaigns, ad groups, keywords, ads, creatives and reports; Operate adds, at once, a change that raises no spend and publishes nothing (a pause, a lowered budget or bid, a negative keyword), and asking an administrator for any spend or creative customers see; Administer adds asking for ad account changes and deletes.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

AppleAdsSeatIntegration is a seat’s access to Apple Ads. It maps onto Crewlet’s role integrations.apple_ads and needs the company’s Apple Ads Integration. The seat holds no key or token: the engine makes each call the seat asks for with the company’s API users, within its level and ad accounts, and holds a spend, a creative customers see or an account change for an administrator.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may use Apple Ads through the engine’s
tools. Crewlet’s enabled.
Required: {}
level AppleAdsLevellevel is what the seat may do on its ad accounts. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
adAccounts string arrayadAccounts are the IDs, each the ad account’s digits, of the ad
accounts the seat may touch, among the Integration’s adAccounts where
it lists them: the engine’s dry run refuses another. Required while the
seat is on. Crewlet’s ad_accounts.
MaxItems: 200
items:MaxLength: 20
items:MinLength: 1
items:Pattern: ^[0-9]+$
Optional: {}

AppliedObjectCounts is how many objects of each kind the applied revision was rendered from.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
units integerunits is the number of Units.Minimum: 0
Optional: {}
seats integerseats is the number of Seats.Minimum: 0
Optional: {}
llmProviders integerllmProviders is the number of model providers, platform providers
included.
Minimum: 0
Optional: {}
mcpServers integermcpServers is the number of MCPServers.Minimum: 0
Optional: {}
integrations integerintegrations is the number of Integrations.Minimum: 0
Optional: {}
schedules integerschedules is the number of Schedules.Minimum: 0
Optional: {}

ArtifactExposure is how browsers reach the engine’s artifact listener (Crewlet’s api.artifacts), which serves artifacts and nothing else. Crewlet refuses it over plain http on a routable host, so a route serves https only.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
mode ArtifactExposureModemode is how the artifact origin is reached.NoneEnum: [None Gateway Ingress]
Optional: {}
gateway GatewayExposuregateway is the Gateways to attach to, for mode Gateway; a listener the
route attaches to must be HTTPS.
Optional: {}
ingress IngressExposureingress is the Ingress settings, for mode Ingress; tls is required.Optional: {}
hostname stringhostname is the artifact origin’s host name, a template with the
variables and rules of api.hostname. Use a registrable domain of its
own: on the dashboard’s site Crewlet serves every artifact opaque.
MaxLength: 200
MinLength: 1
Optional: {}
origins ArtifactOriginsorigins is PerArtifact (unset), where the route takes *., or
Shared, where it takes .
Enum: [PerArtifact Shared]
Optional: {}

Underlying type: string

ArtifactExposureMode is how browsers reach a company’s artifact origin.

Validation:

  • Enum: [None Gateway Ingress]

Appears in:

FieldDescription
NoneArtifactExposureNone routes nothing; the Company may state an address
(spec.exposure.artifactsBaseURL).
GatewayArtifactExposureGateway routes the artifact hosts with an HTTPRoute.
IngressArtifactExposureIngress does the same with an Ingress.

Underlying type: string

ArtifactOrigins is how artifacts are kept apart in a browser.

Validation:

  • Enum: [PerArtifact Shared]

Appears in:

FieldDescription
PerArtifactArtifactOriginsPerArtifact gives each artifact a host under the route’s
host name: its own origin, which needs a wildcard DNS name and certificate.
SharedArtifactOriginsShared serves every artifact from one host, each with an
opaque origin and no browser storage.

AssistantInstructions is standing guidance on how Ask Crewlet writes. It shapes tone, length and layout only: Crewlet places it below its own rules, and enforces every permission and approval whatever it says. It maps onto Crewlet’s assistant.instructions, each field onto the field it names.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
length AnswerLengthlength is how long answers run: Brief (a few sentences), Balanced (a
short paragraph or list) or Detailed (the reasons and relevant detail
too). Unset, answers are as short as each question allows. Crewlet’s
length.
Enum: [Brief Balanced Detailed]
Optional: {}
format AnswerFormatformat is how answers are laid out: Lead (the answer first, in plain
sentences), Lists (bullets and tables where they help) or TLDR (a
one-line TL;DR first). Unset, the answer comes first, with lists and
tables only where they carry structure. Crewlet’s format.
Enum: [Lead Lists TLDR]
Optional: {}
text stringtext is anything else about how Ask Crewlet writes, in the company’s
own words: tone, terms to use or avoid, structure. At most 1000
characters. It reaches the prompt of every answer, so Crewlet refuses
a text holding what looks like a credential in the dry run before
every apply, reported on the Company, without repeating it. Crewlet’s
text.
MaxLength: 1000
MinLength: 1
Optional: {}

AtlasSettings is the company’s policy over its atlas, the map and catalogue of what the company runs on: how long its history is kept, how often each connected integration’s vendor is read whole for it, and whether its agents record in it. It maps onto Crewlet’s atlas block. The atlas itself is never declared here.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
retentionSeconds integerretentionSeconds is how long the atlas keeps its history: a value
somebody replaced, and an entry a person retired that nothing has
reported since. What the atlas holds now never expires. Crewlet keeps
the horizon in whole days, so it is a whole number of days in seconds,
from 90 days (7776000) to 3650 days (315360000). Unset takes Crewlet’s
default of 400 days. Crewlet’s atlas.retention_days, which is this
divided by 86400.
Maximum: 3.1536e+08
Minimum: 7.776e+06
Optional: {}
refreshIntervalSeconds integerrefreshIntervalSeconds is how often each connected integration’s
vendor is read whole for the atlas, in seconds. Crewlet refuses an
interval under 300: a read shares the credential’s rate-limit window
with the integration reconcile loop, and an unchanged read writes
nothing anyway. Unset takes Crewlet’s default of 3600. Crewlet’s
atlas.refresh_interval_seconds.
Minimum: 300
Optional: {}
agentRecords booleanagentRecords is whether the company’s agents record in the atlas what
a tool call of their own turn showed them, and dispute what it holds.
false stops both; what agents recorded before stays until a person
retires it. Unset takes Crewlet’s default, which is on. Crewlet’s
atlas.agent_records.
Optional: {}
ownerWakes booleanownerWakes is whether the agent seat that owns an atlas entry is woken
when the entry drifts: its health turns to alerting, or its sources
come to disagree. Crewlet wakes a seat at most once an entry a day.
false wakes nobody; the entry still waits in the atlas’s Review. Unset
takes Crewlet’s default, which is on. Crewlet’s atlas.owner_wakes.
Optional: {}

AtlassianIntegration connects a company’s Atlassian Cloud organization, in which the engine creates a service account for each agent seat, grants it the company’s Jira and Confluence sites, and mints its API token. It maps onto Crewlet’s integrations.atlassian. Each seat names the minted token and the account’s address as provisioned values of its MCPServer named atlassian, so the Integration’s provisioning is Engine. A Data Center deployment has no organization; its accounts are made by hand and each seat’s token comes from a Secret.

Appears in:

FieldDescriptionDefaultValidation
orgID stringorgID is the organization’s id, from admin.atlassian.com. Crewlet’s
org_id.
MaxLength: 64
MinLength: 1
Pattern: ^[A-Za-z0-9-]+$
Required: {}
apiKeySecretRef SecretKeyReferenceapiKeySecretRef is the Secret key holding an organization API key
created without scopes: Atlassian refuses a scoped key the call that
creates an account. Crewlet’s api_key, a credential position.
Required: {}

Underlying type: string

ChatBackend is which chat surface a company runs. It maps onto Crewlet’s chat.backend (Chatlet is chatlet, Vendor is vendor, None is none).

Validation:

  • Enum: [Chatlet Vendor None]

Appears in:

FieldDescription
ChatletChatChatlet is Chatlet, Crewlet’s own chat: rooms the engine keeps, a
room for each unit’s channel, read on the dashboard.
VendorChatVendor is the Slack or Mattermost the company’s Integrations (or
a seat’s Slack app) connect it to.
NoneChatNone is a company with no chat.

ChatSettings is which chat surface a company runs and the policy of Chatlet. It maps onto Crewlet’s chat block.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
backend ChatBackendbackend is which chat surface the company runs. Unset derives it, as
Crewlet does: Vendor for a company with a Slack or Mattermost
Integration or a seat with a Slack app, Chatlet for every other. So
there is no default here: a Chatlet written beside such an
Integration, or a Vendor without one, is refused by the engine’s dry
run, reported on the Company, since a company’s conversations cannot
live in two places.
Enum: [Chatlet Vendor None]
Optional: {}
chatlet ChatletSettingschatlet is the policy of Chatlet: for backend Chatlet, or for no
backend on a company Crewlet derives Chatlet for. On a company whose
chat is a vendor’s nothing would read it, so the engine’s dry run
refuses it there, reported on the Company.
MinProperties: 1
Optional: {}

ChatletSettings is the policy of Chatlet. It maps onto Crewlet’s chat.chatlet.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
messageRetentionDays integermessageRetentionDays is how long a message lives before the engine
prunes it: 0 keeps messages for ever, and a horizon is 30 to 3650
days, since under a month somebody away could miss a decision before
reading it. Unset takes Crewlet’s default of 365. Crewlet’s
message_retention_days.
Maximum: 3650
Minimum: 0
Optional: {}
defaultChannelPrivate booleandefaultChannelPrivate makes a room created without a stated
visibility private; unset, such a room is public, readable by the
company’s seats. A room created with a visibility keeps it. Crewlet’s
default_channel_private.
Optional: {}
typingStatus WorkingStatustypingStatus is when a seat shows in a room that it is working on a
message. Unset takes Crewlet’s default, Always. Crewlet’s
typing_status.
Enum: [Always Addressed]
Optional: {}

ClassEnvVar is an environment variable an EngineClass sets on the engine pods of every Company of the class: platform wiring such as the address of the platform’s own API. A value from a Secret is copied by the operator into a Secret it owns in each Company’s namespace and referenced from the pod, as telemetry headers are, so the value never appears in the pod template and the platform’s Secret never has to be readable from a tenant namespace. The value is in every tenant’s engine pod all the same, where code the tenant runs can read it: put nothing here a tenant must not hold.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the variable’s name.MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Required: {}
value stringvalue is the variable’s literal value. An empty string is a valid
value, which is why the field is a pointer.
MaxLength: 4096
Optional: {}
valueFrom NamespacedSecretValueSourcevalueFrom reads the value from a Secret key in a namespace the
platform controls.
Optional: {}

CloudflareIntegration connects a company’s Cloudflare account, in which the engine mints one account API token for each agent Seat whose spec.integrations.cloudflare is enabled, at that seat’s level, through the provisioner token. It maps onto Crewlet’s integrations.cloudflare, so the Integration’s provisioning is Engine. Cloudflare delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
accountID stringaccountID is the Cloudflare account the agents’ tokens are minted in,
from the account’s overview page. Crewlet’s provisioning.account_id.
MaxLength: 32
MinLength: 32
Pattern: ^[0-9a-f]\{32\}$
Required: {}
apiTokenSecretRef SecretKeyReferenceapiTokenSecretRef is the Secret key holding the provisioner token: an
account API token with Account API Tokens Write, Account Settings
Read, Zone Read and every permission group a seat level grants, since
the engine grants an agent nothing it does not hold itself. Crewlet’s
provisioning.api_token, a credential position.
Required: {}
zones string arrayzones are the zones, by name as Cloudflare lists them (example.com),
every agent’s token is scoped to. Unset scopes each token to every
zone in the account, zones added later included. A name the account
does not have is reported by the engine and left out of every token.
Crewlet’s provisioning.zones.
MaxItems: 128
items:MaxLength: 253
items:MinLength: 3
items:Pattern: ^([a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?$
Optional: {}

Underlying type: string

CloudflareLevel is what a seat’s Cloudflare token may do. It maps onto Crewlet’s level (Read read, Operate operate, Configure configure, Secure secure). Read reads zones, zone settings, DNS, cache rules, transform rules, firewall, WAF rules, IP lists, SSL and analytics; Operate adds purging the cache and editing cache rules; Configure adds editing transform rules, compression rules and every zone setting, the SSL mode and security level included; Secure adds editing WAF rules and IP lists.

Validation:

  • Enum: [Read Operate Configure Secure]

Appears in:

FieldDescription
Read
Operate
Configure
Secure

CloudflareSeatIntegration is a seat’s own account API token on Cloudflare. It maps onto Crewlet’s role integrations.cloudflare and needs the company’s Cloudflare Integration, under which the engine mints the token at the seat’s level on the company’s zones, rolls it before it expires and hands it to the seat’s Cloudflare tool server itself.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat has its own Cloudflare token. False
deletes the token at Cloudflare; true again mints a new one.
Crewlet’s enabled.
Required: {}
level CloudflareLevellevel is what the token may do. Unset is Read. Crewlet’s level.Enum: [Read Operate Configure Secure]
Optional: {}

Company is one Crewlet company: the operator runs an engine for it and keeps the engine’s company document equal to what the Company and the objects that name it declare.

The Company’s name becomes part of the names of the objects the operator creates for it (the data StatefulSet and the engine Service), so it must be a DNS label of at most 47 characters: a StatefulSet name longer than 52 characters overflows its pods’ controller-revision-hash label.

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringCompany
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec CompanySpecspec is the company’s desired state.Required: {}
status CompanyStatusstatus is the company’s observed state.MinProperties: 1
Optional: {}

CompanyAssistant is Ask Crewlet: the model it runs on, each person’s token ceilings and the company’s instructions on how it writes. It maps onto Crewlet’s assistant block, each field onto the field it names.

Ask Crewlet answers a signed-in person’s questions about the company and prepares changes for that person to approve, acting only as them: every read is a request of theirs, and nothing is written until they approve. It is off until model names the provider it runs on. The bounds of a turn (its steps, its time, how long a proposed change waits, how long a conversation is kept) are fixed in Crewlet, and so is its web: the engine reads any public https page for it, and it searches through its model’s harness where that harness has a web search of its own (ClaudeCode does, Pi does not).

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
model LLMProviderReferencemodel is the provider Ask Crewlet runs on, an LLMProvider, a
platform provider or a fleet, named as a Seat’s chain names one. Unset, Ask
Crewlet is off. It may be any provider driving ClaudeCode or Pi, one
the seats run on included: Crewlet runs it for Ask Crewlet in the
engine’s pod with no tool of its own and its web tools off, whatever
the provider’s webTools says, which the seats on it keep. Codex keeps
a shell its sandbox only confines, OpenCode’s tools have not been
measured to go, and no other harness has a measured way to turn its
web off, so Crewlet refuses a provider of any of them in the dry run
before every apply, reported on the Company, since the rule turns on
the provider’s own spec. Crewlet’s model.
Optional: {}
tokenBudget TokenBudgettokenBudget caps the tokens Ask Crewlet may spend for each person per
window, charged on top of the company’s own spec.tokenBudget.
Crewlet’s token_budget.
MinProperties: 1
Optional: {}
instructions AssistantInstructionsinstructions are how Ask Crewlet writes for everybody in the company:
answer length, layout and free text on tone and style. Each person
may add their own on the engine’s dashboard, which win where the two
differ. They never change what Ask Crewlet may read, propose or do.
Crewlet’s instructions.
MinProperties: 1
Optional: {}

CompanyEndpoints is where a company is reached. Every address is a base URL with its scheme, so that a caller appends a path to it and never reconstructs one from the EngineClass’s templates.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
api stringapi is the in-cluster base URL of the engine’s API: the company’s
Service, for callers inside the cluster.
MaxLength: 2048
MinLength: 1
Optional: {}
exposedAPI stringexposedAPI is the base URL of the engine’s API through the class’s
exposure.api, for callers outside the cluster: https://
when the route terminates TLS (the Ingress has tls, or the Gateway
listener the route attaches to is HTTPS), http:// otherwise,
with the hostname template expanded. Set only while exposure.api.mode
is Gateway or Ingress and the route has been accepted.
MaxLength: 2048
MinLength: 1
Optional: {}
publicBaseURL stringpublicBaseURL is the address vendors deliver webhooks to, when the
company has one: spec.exposure.publicBaseURL, or https://
from the class’s webhooks.hostname. It reaches the engine’s public
listener, and every vendor route is a path under it, such as
/webhooks/forge for an Atlassian Forge relay. Unset while the class’s
webhooks.mode is None, which exposes nothing, and under External
before the Company states its address: the engine is then told the
listener’s address inside the cluster, http://-engine.
.svc:8081, which no vendor can reach.
MaxLength: 2048
MinLength: 1
Optional: {}
dashboardBaseURL stringdashboardBaseURL is where a browser reaches the engine, its dashboard
and its people’s sign-in: spec.exposure.dashboardBaseURL, else the
address of the class’s API route, on the scheme exposedAPI takes, else
http://localhost:8080, the address kubectl port-forward serves the
engine Service’s API port at. It does not wait for the route to be
accepted, as exposedAPI does: it is the engine’s api.external_url,
which the engine reads only at start, and a flip of acceptance would
otherwise restart the data pod. The engine builds every link a person
follows on it, an invitation’s included, so with the third these lead
to a localhost only a port-forwarding browser reaches.
MaxLength: 2048
MinLength: 1
Optional: {}
artifactsBaseURL stringartifactsBaseURL is where a browser reaches the artifact origin:
spec.exposure.artifactsBaseURL, else the class’s artifacts route while it
serves https. Unset, the data pod opens no artifact listener.
MaxLength: 2048
MinLength: 1
Optional: {}

CompanyExposure overrides how a company is reached.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
publicBaseURL stringpublicBaseURL is the HTTPS address vendors deliver webhooks to,
overriding the one the class’s webhooks.hostname derives. A seat’s
executor run never dials it: its box, on a data pod or a seat pod,
calls the seat’s tools and exports its traces on its own pod’s
listener, on loopback. Required when the class’s webhooks.mode is
External, where something outside the operator (a relay, an API
gateway) forwards it to the engine’s public listener. A trailing ’/‘
is dropped, as Crewlet drops it. Crewlet’s api.public.external_url, in
the data pod’s crewlet.yaml, which the engine reads only at start:
changing it restarts the data pod.
Its host is a name, an IPv4
address or an IPv6 address in brackets, followed by at most one port,
1 to 65535: Crewlet refuses to start on any other, but for an IPv6
address whose zone holds a ’]’ (https://[fe80::1%25eth0]]/), which it
starts on and no vendor reaches. The API judges the host and the port
itself rather than leaving them to the API server’s URL parser, which
is Go’s net/url as the API server was built and is run: it takes such
a zone, and under Go’s GODEBUG setting urlstrictcolons=0
https://h.example:80:80 too.
MaxLength: 2048
MinLength: 1
Optional: {}
dashboardBaseURL stringdashboardBaseURL is where a browser reaches the engine: its dashboard,
and the sign-in of the company’s people. It overrides the address of
the class’s API route: set it when the class routes no API, or people
reach it through something in front of the route (a single sign-on
proxy, say). Crewlet’s api.external_url, in the data pod’s
crewlet.yaml, which the engine reads only at start: changing it
restarts the data pod. The engine takes from it the origin a person’s
write must come from, whether the session cookie is Secure (https)
and its scope, and the base of every link a person follows: a link an
agent composes, an invitation (/dashboard#/invite/…), a password
link. An address other than the route’s must serve the engine, its
/dashboard and its /auth routes included. The route, when the class
has one, stays an origin the engine accepts. It is never the public
address: the public listener serves no dashboard. A trailing ’/’ is
dropped.
Crewlet compares the origin of a person’s write with this address as a
browser spells it, and refuses to start on an address whose host a
browser rewrites before it sends it, so the API refuses it too: a host
outside ASCII, as it is or percent-encoded (write its xn— form,
https://xn—bcher-kva.example for https://bücher.example), a host
whose last label is a number and that is not an IPv4 address of four
decimal octets (127.1, 2130706433, 0x7f.0.0.1, 192.168.010.1,
crewlet.123: write 127.0.0.1, or a name that ends in a word), and an
IPv6 address with a zone ([fe80::1%25eth0]). Its host is a name, an
IPv4 address or an IPv6 address in brackets, followed by at most one
port, 1 to 65535 (http://[::1]:8080, not http://::1:8080), which the
API judges itself, as for publicBaseURL.
MaxLength: 2048
MinLength: 1
Optional: {}
artifactsBaseURL stringartifactsBaseURL is where a browser reaches the artifact origin,
ahead of the class’s artifacts route: a tunnel, or http://localhost:8082
for a browser that port-forwards it. Crewlet’s api.artifacts.external_url;
changing it restarts the data pod. https, or http on localhost or
127.x.x.x; {artifact} at the start of the host gives each artifact a host
of its own. It may not be the dashboard’s or the public listener’s
origin, nor a parent of either’s host (RuntimeReady=False AddressRefused).
MaxLength: 2048
MinLength: 1
Optional: {}

CompanyIntegrationSettings is company-wide behaviour of the integration reconcile loop. The vendors themselves are Integration objects.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
checkIntervalSeconds integercheckIntervalSeconds is how long a working integration is trusted
before the engine reads it back, and so how long access revoked at the
vendor goes unnoticed. Unset takes Crewlet’s default of 600. Crewlet’s
integrations.check_interval_seconds.
Minimum: 60
Optional: {}

CompanyLLMSettings is how a company chooses among its model providers.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
order LLMProviderReference arrayorder is the providers’ precedence. A seat with no default chain runs
on the first provider here, and on it alone, while default-fleet has
no member: Crewlet tries no other provider of the order when its keys
are all cooling down, so give a seat a chain or a fleet for a fallback. The providers the order leaves out follow
it: the company’s LLMProviders by name, then the platform providers by
name. Crewlet’s providers.llm_order.
MaxItems: 32
Optional: {}
fleets LLMFleet arrayfleets are named sets of model providers of one model class on one
harness. A seat’s chain or the assistant’s model naming one runs on
whichever member has room for each new piece of work, Crewlet
balancing them on their usage. default-fleet exists without being
listed, with no members; list it to give it some. A fleet with no
members is valid: what runs on it waits until one joins. Crewlet’s
providers.llm_fleets.
MaxItems: 32
Optional: {}
usePlatformProviders booleanusePlatformProviders adds the EngineClass’s platformLLMProviders to the
company, so seats can run on models the platform provides. Their keys
are pushed into the company’s engine, where the tenant can read them
(see the class’s platformLLMProviders).
Optional: {}

CompanyMCPRegistry names a community registry of MCP servers. It maps onto Crewlet’s mcp_registry. A block naming no registry says nothing, so it is refused rather than read as none.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
url stringurl is the address of a registry that speaks the MCP Registry v0.1 API;
Crewlet appends /v0.1/servers to it. An https address with no
credentials, query or fragment, a private host included: what the
registry answers is drafted into launch lines, so a plain http answer
would be one any network peer could rewrite. A result is only ever a
draft in Crewlet’s add flow, marked as not reviewed, and Crewlet dials
nothing a listing names. Crewlet’s url.
MaxLength: 2048
MinLength: 1
Optional: {}

CompanyObjects is a company’s own access to its class’s object store.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
credentialsSecretRef SecretReferencecredentialsSecretRef is a Secret, in the Company’s namespace, holding
the keys accessKeyID and secretAccessKey (S3AccessKeyIDKey,
S3SecretAccessKeyKey) the engine reaches its class’s S3 bucket with:
Crewlet’s store.objects.s3.access_key_id and secret_access_key. Used
only while the class’s objects.backend is S3.
Issue them per company, with a policy that admits the company’s own
prefix of the bucket only (the class’s objects.s3.prefix, expanded):
they are written into the engine pod’s crewlet.yaml, and code the
tenant runs in the pod (a stdio MCP server, a harness) can read
them. Unset uses the pod’s own credentials through the SDK’s
default chain: a workload identity bound through the class’s
serviceAccount.annotations, which every company of the class shares
unless it is scoped per tenant.
Neither key may hold a ${NAME} reference: they are written into the
crewlet.yaml as they are, where Crewlet replaces every one with a
value of the pod’s environment, so the operator holds the pods back
(RuntimeReady=False ObjectCredentialsInvalid) until the key holds none.
Optional: {}

CompanyReference names the Company a namespaced object belongs to. The Company is always in the referring object’s own namespace: an object can be part of exactly one company, and a reference across namespaces would let one tenant attach objects to another’s company.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the metadata.name of a Company in this object’s namespace.MaxLength: 253
MinLength: 1
Required: {}

CompanyRuntime is a company’s bounded overrides of its class.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
version stringversion replaces the tag of the class’s engine image, for example
v1.2.4. It is honoured only when the class sets
engine.allowVersionOverride; the operator refuses a version older than
the one the company’s data was last written by.
MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z0-9_][A-Za-z0-9_.-]\{0,127\}$
Optional: {}
env EnvVar arrayenv adds environment variables to the engine container, for platform
wiring the engine reads from its environment. They are merged over the
class’s podTemplate.spec.env by name: a variable here replaces the
class’s variable of the same name. They are the engine’s environment,
not that of the processes it starts: a Stdio tool server is handed only
the part Crewlet’s allowlist names, such as PATH and the TLS and proxy
variables, a harness that part and the variables its Crewlet profile
passes through, such as GeminiCLI’s GOOGLE_CLOUD_PROJECT and
GOOGLE_CLOUD_LOCATION, and a seat’s executor run that part alone
(the allowlist: PATH, the locale, TERM, TZ, the TLS trust and proxy
variables), its TZ set to the zone Crewlet reads a limit’s reset in
(UTC where TZ names no zone it knows). So a variable a tool server
reads goes in its MCPServer’s env (docs/guides/tool-servers.md), one a
harness reads in the engine’s pod in its LLMProvider’s spec.env,
and one a seat’s executor run reads in the Seat’s spec.sandbox.env.
Names starting with CREWLET_ or OTEL_ are the operator’s own.
ANTHROPIC_API_KEY and OPENAI_API_KEY are refused too: Crewlet reads them
as the key of a model provider in auth mode api-key, or an embeddings
provider, that names none, so a value here would be a credential outside
the engine’s secret store; give the provider its key with
auth.apiKeySecretRef or apiKeySecretRef.
MaxItems: 32
Optional: {}

CompanySignInSettings is the company’s sign-in policy, Crewlet’s sign_in, held within its EngineClass’s spec.signIn: a value past a limit is refused by the engine (Applied=False). Every value left out is Crewlet’s default.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
requireSecondFactor booleanrequireSecondFactor is whether a person signing in with a password
must also give a code from an authenticator app. Unset is true. false
needs a class whose spec.signIn.secondFactor is Optional. Crewlet’s
sign_in.require_second_factor.
Optional: {}
minPasswordLength integerminPasswordLength is the shortest password a person may set, from 12
to 256 characters. Unset is 12. Crewlet’s
sign_in.min_password_length.
Maximum: 256
Minimum: 12
Optional: {}
sessionLifetimeSeconds integersessionLifetimeSeconds is the longest a session lives from sign-in,
however it is used, from an hour (3600) to 30 days (2592000). Unset is
7 days. A shorter value ends a live session at its next request; a
longer one reaches only sessions signed in after it. Crewlet’s
sign_in.session_lifetime_seconds.
Maximum: 2.592e+06
Minimum: 3600
Optional: {}
idleTimeoutSeconds integeridleTimeoutSeconds is how long a session lives unused before its
person signs in again, from 15 minutes (900) to 30 days (2592000).
Unset is 12 hours. Crewlet’s sign_in.idle_timeout_seconds.
Maximum: 2.592e+06
Minimum: 900
Optional: {}
stepUpSeconds integerstepUpSeconds is how long one proof of identity authorises sensitive
changes before it is asked for again, from 5 minutes (300) to a day
(86400). Unset is an hour. Crewlet’s sign_in.step_up_seconds.
Maximum: 86400
Minimum: 300
Optional: {}

CompanySpec is a company: the engine that runs it and the company-wide part of its document. Its units, seats, model providers, tool servers and integrations are objects of their own that name the Company in their spec.companyRef.

Appears in:

FieldDescriptionDefaultValidation
engineClassName stringengineClassName is the EngineClass the company runs with. Unset uses
the class annotated crewlet.ai/is-default-class=true.
Whoever may write a Company may name any class, including one that
offers platformLLMProviders or larger limits; a class admits only the
namespaces its spec.allowedNamespaces selects, and a Company in any
other is not accepted (ClassNotAllowed).
MaxLength: 253
MinLength: 1
Optional: {}
companyName stringcompanyName is the company’s name. Crewlet derives every seat’s
identity from it and the seat’s handle, so it cannot be changed: a new
name would orphan every seat’s memory. Crewlet’s name.
MaxLength: 256
MinLength: 1
Required: {}
mission stringmission is one line on what the company is for; every seat’s prompt
carries it. Crewlet’s mission, held to its bounds: at most 1024
characters and one line, both judged with the space around it trimmed
(CEL’s trim() is Go’s strings.TrimSpace, which Crewlet trims with, and
size() counts characters as Crewlet does).
Judged only when it CHANGES, as Crewlet judges a charter: a Company
written before these bounds keeps applying, and is refused only for a
mission it edits and leaves at fault. maxLength is the bound this field
had before them, kept so such a Company stays valid; it also bounds the
rules’ cost.
MaxLength: 2048
MinLength: 1
Optional: {}
vision stringvision is a longer statement of where the company is going, in
paragraphs if it needs them. Crewlet’s vision, held to its bound: at
most 2048 characters with the space around it trimmed, judged only when
it changes, and with the bound it had before as maxLength, as on
mission.
MaxLength: 8192
MinLength: 1
Optional: {}
policies string arraypolicies are company-wide rules every seat’s prompt carries, one item
of a list each. Crewlet’s policies, held to its bounds: at most 25,
each with the space around it trimmed not blank, at most 1024
characters and one line, and none a repeat of another.
Judged on what a change makes, as Crewlet judges it: a policy the
Company already held is not judged again, so reordering and removing
policies are never refused; the count only when it passes 25 and grows;
a repeat only when the change adds a copy. One difference is forced by
the API server’s budget for a rule’s cost: this API recognises a policy
it already held, and a repeat, by its exact text, where Crewlet compares
them trimmed. Two policies differing only in the space around them are
admitted here and refused by Crewlet’s write, which the Company reports
as Applied=False. maxItems and items’ maxLength are the bounds this
field had before, as on mission.
MaxItems: 64
items:MaxLength: 2048
items:MinLength: 1
Optional: {}
timeZone stringtimeZone is the company’s clock, an IANA time zone such as
Europe/Berlin: where its days begin for budgets, due dates and
schedules. Unset is UTC. Crewlet’s timezone.
MaxLength: 64
MinLength: 1
Pattern: ^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+)*$
Optional: {}
tracker TrackerSettingstracker is which work tracker the company runs.MinProperties: 1
Optional: {}
knowledge KnowledgeSettingsknowledge is which knowledge base the company runs.MinProperties: 1
Optional: {}
inbox InboxSettingsinbox is the company’s policy over a person’s inbox.MinProperties: 1
Optional: {}
signIn CompanySignInSettingssignIn is how the company’s people sign in: whether a second factor is
required, the shortest password, and how long a session and a proof of
identity last. Crewlet’s sign_in.
MinProperties: 1
Optional: {}
atlas AtlasSettingsatlas is the company’s policy over its atlas, the map of what it runs
on: its history’s horizon, how often its vendors are read for it, and
whether its agents record in it. Crewlet’s atlas.
MinProperties: 1
Optional: {}
diagnostics DiagnosticsSettingsdiagnostics is what the engine may say about its own defects outside
the company. Crewlet’s diagnostics.
MinProperties: 1
Optional: {}
chat ChatSettingschat is which chat surface the company runs: Chatlet, Crewlet’s own,
unless it is connected to Slack or Mattermost. Crewlet’s chat.
MinProperties: 1
Optional: {}
tokenBudget TokenBudgettokenBudget caps the tokens all seats together may spend per window.
Each window binds every agent seat, so Crewlet refuses one below
turn_engine.executor_min_budget_tokens (65000 unless spec.engineConfig
sets turn_engine): an executor launch needs that much of every window
left, and a seat under a smaller ceiling would never launch one. The
refusal comes from the engine’s dry run, Invalid on the Company.
Crewlet’s token_budget.
MinProperties: 1
Optional: {}
llm CompanyLLMSettingsllm is how the company chooses among its model providers.MinProperties: 1
Optional: {}
assistant CompanyAssistantassistant configures Ask Crewlet, which is off until its model is
set. Crewlet’s assistant.
MinProperties: 1
Optional: {}
embeddings EmbeddingSettingsembeddings is the provider vectors are computed with. Unset leaves
search keyword-only. Crewlet’s providers.embeddings.
Optional: {}
sandbox SandboxSettingssandbox tunes the boxes the company’s agent seats’ executors run in,
on the engine pods that hold the seats. Unset takes Crewlet’s defaults:
the operator writes Crewlet’s providers.sandbox for every company.
MinProperties: 1
Optional: {}
integrations CompanyIntegrationSettingsintegrations is company-wide integration behaviour.MinProperties: 1
Optional: {}
mcpRegistry CompanyMCPRegistrymcpRegistry is the community MCP registry Crewlet’s Settings › MCP &
tools searches beside its curated catalogue when somebody adds a tool
server. Unset, there is no community search. Crewlet’s mcp_registry.
MinProperties: 1
Optional: {}
engineConfig EngineConfigEntry arrayengineConfig is passed through into the company document as written,
for the engine’s tuning blocks that have no field here: turn_engine,
learning, scheduling, workers, skill_variables, artifacts and the
notification_* settings, spelled as Crewlet spells them. Each entry is
one top-level key of the document and its value. The operator does not
interpret it; the engine validates it in the dry run before every
apply, and a refusal is reported on the Company.
It may not set what another field or object of this API owns: name,
mission, vision, policies, timezone, tracker, knowledge, inbox, atlas, diagnostics, chat,
token_budget, assistant, providers, integrations, mcp_registry,
mcp_servers, roles, units or seat_access_migrated, which the operator
writes with every integration kind so the engine acts on each Seat’s
spec.integrations. Every position Crewlet holds a credential in lives
under one of those keys or under code, below, so engineConfig can never
carry a credential: the API server refuses a Company whose engineConfig
names one of them, before anything is stored.
Nor may it set code, Gitlet’s block. Gitlet, the engine’s own git host,
keeps the company’s git repositories in the engine, and v1alpha1 does
not offer it: Gitlet serves them only from a node with the gitlet role and
a cache of them on its volume, and no pod the operator runs has either,
so a document that set code would declare repositories nothing can
clone or push. The block also holds credentials: a repository’s import
and mirror credentials (code.repos[].import, mirror_from and mirror_to)
and the secrets its checks are given (code.checks.env).
MaxItems: 64
Optional: {}
config ConfigSettingsconfig is how the operator manages the company’s document.{ managementPolicy:Enforce }MinProperties: 1
Optional: {}
topology CompanyTopologytopology is how the engine is laid out in pods.{ data:map[replicas:1] }MinProperties: 1
Optional: {}
exposure CompanyExposureexposure overrides how the company is reached.MinProperties: 1
Optional: {}
runtime CompanyRuntimeruntime is the company’s bounded overrides of its class.MinProperties: 1
Optional: {}
objects CompanyObjectsobjects is the company’s own access to its class’s object store.MinProperties: 1
Optional: {}
suspend booleansuspend stops the engine and keeps its data volumes; setting it back
to false starts it again. It takes effect whatever else is wrong with
the Company, even while it is not Accepted. Meanwhile the Company
reports Ready=False with the reason Suspended, and vendors keep
delivering webhooks, some disabling a subscription after a long run of
failed deliveries.
Optional: {}
deletionPolicy DeletionPolicydeletionPolicy is what happens to the data volumes when the Company is
deleted. With Retain the keyring Secret is kept as well, since the
volumes cannot be read without it.
RetainEnum: [Retain Delete]
Optional: {}

CompanyStatus is what the operator observed about a Company.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions are Ready (the summary), Accepted, RuntimeReady,
SecretsSynced, ConfigApplied and Exposed, which Ready summarizes, and
EngineHealthy, IdentityClaimed and SeatsPlaced, which it does not.
MaxItems: 16
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}
engine EngineStatusengine is what runs the company.MinProperties: 1
Optional: {}
topology TopologyStatustopology is the state of the company’s pods.MinProperties: 1
Optional: {}
config ConfigStatusconfig is the revision the engine runs.MinProperties: 1
Optional: {}
endpoints CompanyEndpointsendpoints is where the company is reached.MinProperties: 1
Optional: {}
apiAccessSecretRef SecretReferenceapiAccessSecretRef names the Secret, in the Company’s namespace, that
holds a bearer token for the engine’s API under the key token
(APIAccessTokenKey) and the API’s in-cluster base URL under the key
url (APIAccessURLKey). It is for the company’s consumers (a control
plane, a dashboard); the operator uses a token of its own, so revoking
this one never locks the operator out.
The token holds Crewlet’s admin grant, which takes in every app, so
whoever holds it can rewrite the company document where the operator
does not manage it, reveal every value in the engine’s secret store
(the class’s platform model keys included: it is a deployment’s own
token, not a person’s machine token, which Crewlet refuses a reveal),
and invite or create the company’s people. Grant read on this Secret
only to whoever may do that, by resourceNames: read on every Secret of
the namespace also exposes -api-tokens, -keyring and
-bootstrap.
Optional: {}

CompanyTopology is how a company’s engine is laid out in pods: one data pod that holds the estate, serves the API and runs the background workers, and the seat pools, stateless pods that run the seats placed in them. Without seat pools every seat runs on the data pod.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
data DataTopologydata is the pods that hold the estate.{ replicas:1 }MinProperties: 1
Optional: {}
defaultSeatPool stringdefaultSeatPool is the pool of every agent seat whose Seat names no
spec.placement.pool: data, or the name of a Shared pool of seatPools.
dataMaxLength: 20
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}
seatPools SeatPool arrayseatPools are stateless pods that run seats. They need the class’s
spec.seatPools.policy Allowed, and together run at most its maxPods
pods.
MaxItems: 8
Optional: {}

ConfigSettings is how the operator manages a company’s document.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
managementPolicy ManagementPolicymanagementPolicy says who owns the document. Under Enforce the data
pod’s crewlet.yaml sets Crewlet’s api.auth.company_writers to the
operator’s own token, so the engine refuses every other credential a
change to the document; under Observe and Seed it sets none, and
Crewlet’s authority table decides who may. The engine reads
crewlet.yaml only at start, so changing the policy to or from Enforce
restarts the data pod.
EnforceEnum: [Enforce Observe Seed]
Optional: {}

ConfigStatus is the revision of the company document the engine runs.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
revisionID stringrevisionID is the engine’s id of the last revision the operator saw
run the rendered document: the one it applied, one the engine
activated with the same content (a reload), or, under Observe, the
one it found in sync. Under Seed it is the revision the document was
seeded as.
MaxLength: 128
MinLength: 1
Optional: {}
epoch integerepoch is the engine’s activation counter for that revision. The
engine applies a revision asynchronously; it runs it once the applied
epoch its /health reports has reached this.
Minimum: 0
Optional: {}
appliedHash stringappliedHash is the hash of the rendered document and of the values
of the Secret keys it references, as the revision recorded runs
them: the operator’s last write, or a revision it found running that
document after every value it wrote. The values enter it only as
keyed fingerprints, so it reveals nothing about them.
MaxLength: 128
MinLength: 1
Optional: {}
appliedAt TimeappliedAt is when the operator activated the revision this records,
or found the engine running it where it adopted a revision of the
rendered document it did not write (a reload), or a write of its own
whose activation the engine could not confirm (unconfirmed), which may
have landed any time since it was written: what the operator’s wait
for the engine to apply its epoch counts from.
Optional: {}
objects AppliedObjectCountsobjects counts the objects the revision was rendered from.MinProperties: 1
Optional: {}
unconfirmed UnconfirmedRevision arrayunconfirmed are the revisions of the rendered document the operator
wrote, which the engine stored, and whose activation the engine sent
to its fleet and could not confirm (a 503 naming the revision it
stored): the fleet may run one of them or none. Before it writes
again, the operator reads which revision the engine runs. If it runs
one of these, that write landed: status.config records it as the
operator’s write, as though the engine had confirmed it. If it runs the
revision one of them was built on, that one has not landed and still
may, so it stays, and the write is sent again on the same condition,
which the engine refuses once one of them lands. Any other can no
longer land, and goes, to overtaken where it was written into an
engine that ran no document. A reload the operator asks for, to
activate a revision of its own again, is recorded here too when the
engine stores it and cannot confirm activating it, as a write of that
revision’s document, whether or not a read after it could say which
revision runs. They are oldest first, and a seventeenth drops the
oldest.
MaxItems: 16
Optional: {}
overtaken UnconfirmedRevision arrayovertaken are writes from unconfirmed into an engine that ran no
document that another revision the engine activated has overtaken.
None of them can land any more, and under Seed one of them is taken as
the seed whatever revision runs now: the engine stored it while it had
none, so either it landed and was replaced since, or another writer’s
create reached the engine first, which nothing the engine says tells
apart. Each is kept until a reconcile decides with it, and they go
once status.config records a revision of the rendered document in
sync, a write of it, or the seed. They are oldest first, and a
seventeenth drops the oldest.
MaxItems: 16
Optional: {}
placement RevisionPlacementplacement is where the revision the engine runs pins its agent seats,
read from the engine’s document under every management policy. The
operator keeps a seat pool’s pods running while the running revision
pins a seat to them, even after the pool or the seat’s placement is
gone from the spec: a pod stopped while its seat is still pinned to
it would leave the seat held by nobody, and a blocked document keeps
the last good revision running. Once a revision that pins nothing to
them runs, the pods are deleted.
MinProperties: 1
Optional: {}

ConfluenceIntegration turns Confluence on for a company: page changes wake the seats they concern, and the company may run Confluence as its knowledge base (the Company’s spec.knowledge.backend Confluence). It maps onto Crewlet’s integrations.confluence. Each seat’s Confluence identity is its own token, a credential of the MCPServer named atlassian in its Seat’s spec.mcp.

Appears in:

FieldDescriptionDefaultValidation
url stringurl is a Data Center instance’s or a Cloud site’s base URL. Unset
with cloudID unset, the company’s Atlassian Integration discovers the
site. Crewlet’s url.
MaxLength: 2048
MinLength: 1
Optional: {}
cloudID stringcloudID is an Atlassian Cloud site’s id; requests go through the API
gateway of the Cloud siteURL is on: Atlassian Government Cloud’s,
api.atlassian-us-gov-mod.com, for a site under
atlassian-us-gov-mod.net, and api.atlassian.com otherwise. Crewlet’s
cloud_id.
MaxLength: 64
MinLength: 1
Pattern: ^[A-Za-z0-9-]+$
Optional: {}
siteURL stringsiteURL is the site’s address as a browser opens it, for the links
the engine hands people; needed with cloudID, which is read through
the gateway of this site’s Cloud. Unset is url. Crewlet’s
site_url.
MaxLength: 2048
MinLength: 1
Optional: {}
email stringemail is the account’s address, for Confluence Cloud’s basic
authentication. Unset sends the token as a bearer token. Crewlet’s
email.
MaxLength: 254
MinLength: 3
Pattern: ^[^@\s]+@[^@\s]+$
Optional: {}
tokenSecretRef SecretKeyReferencetokenSecretRef is the Secret key holding the API token (Cloud) or
personal access token (Data Center) of the account a seat without a
Confluence credential of its own searches as, which also reads the
tool-skill pages. Crewlet’s token, a credential position.
Required: {}
webhookSecretRef SecretKeyReferencewebhookSecretRef is the Secret key holding the secret a Data Center
instance signs webhook deliveries with. Required for Data Center.
Crewlet’s webhook_secret, a credential position.
Optional: {}
webhookTokenSecretRef SecretKeyReferencewebhookTokenSecretRef is the Secret key holding the token a Confluence
Cloud webhook carries in its delivery URL, Cloud signing nothing: at
least 26 characters, random. Crewlet’s webhook_token, a credential
position.
Optional: {}

ConfluenceSeatIntegration is a seat’s access on Confluence. It maps onto Crewlet’s role integrations.confluence and needs the company’s Confluence Integration. With the company’s Atlassian Integration the engine creates the seat’s account, grants it Confluence and gives it the access in the spaces; without one the account is made outside the engine, and the engine reports the seat’s access as managed outside Crewlet. A site with Confluence’s role-based access grants by spaceRole; a site without it grants space permissions by operation.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat is on Confluence. False takes away the
account’s access in its spaces and narrows its token, and keeps the
account and its Confluence product access. Crewlet’s enabled.
Required: {}
spaceRole stringspaceRole is the space role the seat holds in each of spaces, by its
id on the site (Confluence’s role-based access): Viewer, Collaborator,
Manager, Admin, or a custom role. The engine checks it against the
site’s roles on every pass, and reports one that no longer exists
rather than falling back to another. It or operations is required
while the seat is on in spaces; with neither and no spaces, the seat
holds Confluence product access only. Crewlet’s space_role.
MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z0-9][A-Za-z0-9_:-]*$
Optional: {}
operations string arrayoperations are Confluence’s space permissions, as
: under Confluence’s own names, such as read:space
or create:page, the seat holds in each of spaces, for a site whose
role-based access is off. Crewlet’s operations.
MaxItems: 64
items:MaxLength: 64
items:MinLength: 3
items:Pattern: ^[a-z_]+:[a-z_]+$
Optional: {}
spaces string arrayspaces are the spaces, by key, the seat holds spaceRole or
operations in. Each must be a space the company’s document names, as
a Unit’s or a Seat’s spec.space: Crewlet refuses another, which the
engine’s dry run reports as Invalid on the Seat. Crewlet’s spaces.
MaxItems: 128
items:MaxLength: 255
items:MinLength: 1
items:Pattern: ^~?[A-Za-z0-9]+$
Optional: {}

Underlying type: string

ContainerWebhookMode is how webhooks are registered at GitHub: once on the organization, or once per repository. It maps onto Crewlet’s org_webhook (Auto is auto, Require is true, Never is false).

Validation:

  • Enum: [Auto Require Never]

Appears in:

FieldDescription
AutoContainerWebhookAuto uses one organization hook where the token may
create one, and per-repository hooks otherwise.
RequireContainerWebhookRequire demands an organization hook.
NeverContainerWebhookNever always registers per-repository hooks.

DataPodSettings sizes the pods that hold a company’s estate. In v1alpha1 a company runs exactly one data pod, which also serves the API, runs the background workers and runs every seat placed in the pool data.

Appears in:

FieldDescriptionDefaultValidation
allowedReplicas integer arrayallowedReplicas is the set of data-pod counts a Company of this class
may choose in spec.topology.data.replicas. v1alpha1 runs exactly one
data pod, so the only value admitted is 1; 3 and 5, a highly available
estate, are added when the operator can run them.
[1]MaxItems: 1
MinItems: 1
items:Enum: [1]
Optional: {}
resources ResourceRequirementsresources are the compute resources of the engine container. Its
memory holds the engine, the harness processes its providers run in its
process (each provider’s maxConcurrent of them, 200 to 450 MB each),
a seat’s Direct executor run, one harness and the tools it starts, for
each agent seat the pod holds that runs Direct, the stopped processes
of each Direct run parked on a person’s question, which keep their
memory until the run resumes or its pause TTL expires, and, one at a
time, the export of a Direct OpenCode run’s session Crewlet saves or
packs, up to about ten times the session at its peak; a save waits
while the container lacks the room. A run that takes the container
past its limit can take the engine with it.
Optional: {}
storage DataStoragestorage is the data volume each data pod gets.Required: {}
startupSeconds integerstartupSeconds is how long a data pod’s engine may take, from its
start, to answer /health 200: the time it takes to recover what it holds
on its volume (the store, the event stream, the replicated estate) and
bring its broker up. Crewlet waits that recovery out rather than
bounding it, because it grows with the data, so the startup probe is
what bounds it: it allows at least this long from the container’s
start, and less than ten seconds more. A boot that runs past it is
restarted and begins its recovery again, so err long: a window that is
too long costs nothing on a healthy boot, only the time to restart one
that hung.
It is at least every bound Crewlet puts on a data pod’s boot, laid end
to end, which a window may not cut short: 1747 seconds, or 1887 with
objects.backend S3, whose bucket every boot probes. A value an older
floor admitted, which the API server keeps until the field is written
again, gives way to those bounds. They are its waits
for its own broker and store (provisioning the event stream, the
coordination buckets, the object store and the state logs, two minutes
a window on the broker of one member a data pod runs, and the requests
around them), never for a peer or a seat pod. One of them grows with
what the node holds and is left to the recovery’s share, as the
recovery is: the claim of each batch of a seat pod’s events the node
kept and could not settle, 15 s a batch. And a read of a state log’s
state is counted at the 30 s Crewlet asks it for while the broker
answers none, past which it gives the read up, and a read of a record
at those 30 s and the time its reply takes to be built and read, at
most 11 s for the largest record a log holds, so no broker that never
answers holds a boot past the window. Unset derives it from
the data volume: that floor plus six seconds per GiB of the volume.
That is four times the second and a half per GiB Crewlet measured
recovering after a crash on a fast local disk, for volumes that are
network-attached; set this for disks slower than that. Nothing the
company configures counts: the engine answers /health once it has
recovered, and only then reads the company’s secrets, starts its tool
servers and restores its harnesses’ logins.
Changing it changes the data pods’ template, which restarts them.
Maximum: 86400
Minimum: 1747
Optional: {}
terminationGracePeriodSeconds integerterminationGracePeriodSeconds is how long a data pod may take to stop.
The engine finishes the turn segments it runs in its own process
before it exits (a seat’s launch, the collection of its run, the
review, a delegated worker) and puts no bound on that itself; after
them, on a pod that runs seats, as a data pod does, its own stop can
take about 141 s more, its sandbox coordinator’s records among it, so
Crewlet asks for a pod’s longest segment plus 150 s, plus its preStop
sleep, which Kubernetes counts inside the grace. So the default is 455
seconds: a long segment of five minutes, those 150 s and the data
pod’s 5 s preStop sleep, rather than the Kubernetes default of thirty
seconds, which covers none of it. Beside its wait for turns the drain
saves the session of each Direct run whose session moved, for at most
30 s, which the segment holds wherever it is 30 s or more. A seat’s
executor run is not waited for: a Direct one on the pod is a process
of it and ends with it, its box with the pod’s sandboxes volume, and
Crewlet carries its round on in a fresh run once the pod is back,
continuing its newest save where one landed.
455Maximum: 3600
Minimum: 30
Optional: {}
scratchSizeLimit QuantityscratchSizeLimit caps the emptyDir a data pod keeps its /tmp and HOME
on: what the processes the engine runs on the pod write off its data
volume, the packages and files of the stdio tool servers it starts
(a launcher such as npx or uvx installs a server under HOME), git’s
and their scratch files, the sockets of its tool sessions, and what a
seat’s Direct executor run writes outside its box. Crewlet points a
run’s temporary directories into its box but confines it to nothing
else, so a command that names /tmp or the engine’s home outright
writes here. A pod that writes more is evicted, with every run and
turn on it and the company’s API; its data volume is untouched. Unset
is 10Gi.
It holds the executor sessions Crewlet keeps, too, unless a company turns
them off (turn_engine.conversation_session.enabled: false in its
spec.engineConfig): a run’s session waits here, sealed, from the run’s
collection until its upload to the object store is done, and so does
each save of a run’s session as it works and as the pod drains, four at
most at once. Each is a sealed text of 48 MiB at most, and each large
payload it keeps apart (a PDF or an image a run read) sealed beside it,
94 MiB at most together, beside the spool its scrub keeps the session in
as it reads it, which it gives back as the seal writes, and Crewlet
holds them all to one room of 481 MiB a pod, the four
saves and one more session at their bound; a run’s last session that
finds no room within a minute is not kept, and the turn’s next launch
continues its newest kept one. A launch that continues a session streams
it from the object store into its box and spools none of it here. The
10Gi default holds that room beside the rest with plenty to spare; the
561Mi minimum holds it beside the files of a few small processes, not a
tool server’s packages. Neither counts the temporary database and sort
spill the store writes under /tmp as it copies itself for a snapshot or a
backup, which grow with the store: give a class whose data pods hold a
large store room for them.
It does not hold the live output of the harnesses the engine runs on
the pod: Crewlet captures each one’s output into files on the data
volume, unlinked as the harness starts, 64 MiB of room as a call starts
and up to 128 MiB while it runs, and bounds them itself.
It bounds and reserves as sandboxSizeLimit does, and the
ephemeral-storage limit in resources bounds the two together with the
container’s own writes. Changing it changes the data pods’ template,
which restarts them.
Optional: {}
sandboxSizeLimit QuantitysandboxSizeLimit caps the emptyDir a data pod keeps its sandboxes in,
at /var/lib/crewlet-sandboxes: the boxes Crewlet makes on the pod
itself for the executor runs it places there (its direct cell, under
Crewlet’s providers.sandbox.local.state_dir): one for each agent seat
of the pod whose run is running, a seat running one at a time, and one
for each run parked on a person’s question, which frees its seat for
its next run and keeps its box, its processes stopped, until it
resumes or its pause TTL expires (the Seat’s pauseTTLSeconds, else the
Company’s spec.sandbox.defaultPauseTTLSeconds, 1800 seconds unless
set; 0 removes the box at once). A box is removed when its run ends,
and holds the run’s checkout, its harness’s home and temporary files,
whatever the run installs and builds, and an OpenCode save’s staging,
the session’s export and its gzip, one at a time. A pod whose boxes
write more is evicted, with every run and turn on it; its data volume
is untouched. Unset is 20Gi. It bounds the boxes alone: what a run
writes outside its box counts against scratchSizeLimit, or, under
/var/lib/crewlet, against the data volume.
It bounds the boxes and reserves nothing: the scheduler places the
pod by the ephemeral-storage request in resources, and an
ephemeral-storage limit there bounds the container’s own writes and
every emptyDir of the pod together, so give it room for this one.
Changing it changes the data pods’ template, which restarts them.
Optional: {}

DataStorage is the volume each data pod keeps the company’s estate on.

Appears in:

FieldDescriptionDefaultValidation
storageClassName stringstorageClassName is the StorageClass of the data volumes. Unset uses
the cluster’s default class.
MaxLength: 253
MinLength: 1
Optional: {}
size Quantitysize is the capacity requested for each data volume. It holds the
store, the event stream and the store’s cache. There is no default: how
much a tenant may keep is a platform decision.
Three quarters of it is the engine’s event stream, Crewlet’s
stream.store_max_bytes: the stream reserves what a node keeps there up
front, and a fresh node refuses to boot on a share that cannot hold it
(Crewlet’s engine.BrokerFloor, and its deployment guide’s “minimum room
for a fresh node”). Its fourteen state logs’ ceilings at their smallest
(Gitlet’s code log among them, which a node reserves whether or not
the company hosts code) come to 9462349824 bytes, so a volume must be
at least 12Gi, whose share of 9Gi holds them. With objects.backend
NATS, the default, the object store’s bucket reserves a quarter of the
share beside them, 12616466431 bytes in all, so such a class must give
at least 16Gi, whose share is 12Gi. A seat’s executor sessions, with the
saves they replaced, reach up to twice
Crewlet’s max_bytes_per_seat, 128 MiB at its default, so twenty seats
fill that bucket alone, and every upload is refused from then on: put
such a company’s objects on S3. That is the least that boots: the
mailboxes and coordination buckets grow into what is left, so give a
company that runs for long more. The stream’s ceiling is 64Ti
(config.StoreMaxBytesCeiling, a guard against a unit mistake), so a
volume larger than about 85Ti gives the stream 64Ti and the rest to the
store and its snapshots.
The floors are the volume’s size, not the free space its filesystem
reports once it is made. The operator states the stream’s share,
three quarters of the size the claim asks for (or, grown, was given),
as the broker’s limit, so neither nats-server nor the engine sizes it
from the disk, as both do where the limit is unset; and no engine pod
the operator runs builds a code cache, the one other step of a boot
that can refuse for want of free space, which only a node with the git
role serving the company’s code builds. So 16Gi’s share of 12 GiB
holds the 12616466431 bytes a fresh node reserves with about 256 MiB to
spare, and 12Gi’s of 9 GiB the 9462349824 of its logs with 192 MiB,
whatever filesystem the volume is made with. The disk still has to
hold that limit beside the node’s own files, its store and the
store’s snapshots: by mke2fs’s default layout an ext4 filesystem
leaves about 15.6 GiB of 16Gi free made with -m0, as Kubernetes makes
it, and about 14.8 GiB with mke2fs’s default 5% reserve for root, and
of 12Gi about 11.7 GiB and 11.1 GiB (computed from that layout, not
measured), so about 2.1 to 3.6 GiB beyond the stream’s limit is
theirs. Backups, a donor’s snapshot and the retention alarm read the
free space as they run, and refuse only their own work, never a boot.
It applies to the data volumes of companies created after it is set.
An existing company’s volumes keep the size they were created with:
they are claimed through the StatefulSet’s volume claim templates,
which Kubernetes does not let change, and growing a volume is a
decision about one company’s storage class and data, not the class’s.
Its owner expands the company’s claim instead, and once the expansion
lands the operator sizes the stream from what the claim then has.
A class stored below the floor, under an older one, keeps its size,
and every Company created under it gets a volume no fresh node boots
on, so raise it. Until it is raised the API refuses any change to the
class’s spec, or, with objects.backend S3, a change of its size that
leaves it below the floor.
Required: {}

DataTopology is the pods that hold a company’s estate.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
replicas integerreplicas is the number of data pods. It must be one of the class’s
spec.data.allowedReplicas. v1alpha1 runs exactly one data pod, so 1 is
the only value admitted. A highly available estate of 3 or 5 is a
later addition, and it comes with a rule that the count cannot change
once set, because the event stream’s replication is fixed when the
estate is created: admitting 3 or 5 before the operator can run them
would leave Companies that could never be corrected.
1Enum: [1]
Minimum: 1
Optional: {}

DataTopologyStatus is the state of a company’s data pods.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
replicas integerreplicas is the number of data pods.Minimum: 0
Optional: {}
readyReplicas integerreadyReplicas is the number of data pods that are ready.Minimum: 0
Optional: {}
updatedReplicas integerupdatedReplicas is the number of data pods that run the current pod
template.
Minimum: 0
Optional: {}

DatadogIntegration turns Datadog on for a company: a firing monitor wakes the seat its tags name. It maps onto Crewlet’s integrations.datadog. The engine registers the webhook at Datadog itself and creates a service account for each agent Seat whose spec.integrations.datadog is enabled, with the role that block names, so the Integration’s provisioning is Engine.

Appears in:

FieldDescriptionDefaultValidation
webhookTokenSecretRef SecretKeyReferencewebhookTokenSecretRef is the Secret key holding the token every
delivery carries in its X-Crewlet-Token header: at least 26
characters, random. Datadog signs nothing, so this token is the whole
of the check. Crewlet’s webhook_token, a credential position.
Required: {}
routeTo DatadogRouteTorouteTo is where an alert goes whose monitor names no seat.
Crewlet’s route_to.
MinProperties: 1
Required: {}
site DatadogSitesite is the region the organization, and so its keys, are in.
Crewlet’s provisioning.site.
Enum: [US1 US3 US5 EU1 AP1 AP2 US1FED]
Required: {}
apiKeySecretRef SecretKeyReferenceapiKeySecretRef is the Secret key holding an API key of the
organization, which says which organization a call is for. Crewlet’s
provisioning.api_key, a credential position.
Required: {}
appKeySecretRef SecretKeyReferenceappKeySecretRef is the Secret key holding an application key, which
says which user acts: one allowed to manage webhooks and service
accounts. Crewlet’s provisioning.app_key, a credential position.
Required: {}
emailDomain stringemailDomain is the domain the service accounts’ addresses are built
under; Datadog requires an address and never writes to it. Unset
takes Crewlet’s default, agents.crewlet.invalid. Crewlet’s
provisioning.email_domain.
MaxLength: 253
MinLength: 1
Pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$
Optional: {}
webhookName stringwebhookName is the name of the webhook the engine keeps at Datadog,
and so the handle monitors write: @webhook-. Unset is crewlet.
Crewlet’s webhook_name.
MaxLength: 128
MinLength: 1
Pattern: ^[^ @,]+$
Optional: {}
handleTag stringhandleTag is the monitor tag key whose value names the seat an alert
wakes, such as crewlet:sre-lead. Unset is crewlet. Crewlet’s
handle_tag.
MaxLength: 128
MinLength: 1
Pattern: ^[a-z][a-z0-9_./-]*$
Optional: {}

DatadogRouteTo is where an alert goes whose monitor names no seat.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
seatRef LocalObjectReferenceseatRef names the agent Seat, in this namespace, the alert wakes.
Crewlet’s route_to, as the seat’s handle.
Optional: {}
dismiss booleandismiss wakes nobody: only monitors that name a seat reach an agent,
and the rest stay with whatever Datadog already does about them.
Crewlet’s route_to: none.
Optional: {}

DatadogSeatIntegration is a seat’s service account on Datadog. It maps onto Crewlet’s role integrations.datadog and needs the company’s Datadog Integration, under which the engine creates the account with the role and mints its application key.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat is on Datadog. False disables the service
account and deletes its key; Datadog never erases a user, so its
history keeps its author. Crewlet’s enabled.
Required: {}
role stringrole is the Datadog role the account holds, by its id
(GET /api/v2/roles): a managed role, such as Datadog Read Only Role,
or a custom one. The engine checks it against the organization’s
roles on every pass, and reports one that no longer exists rather than
falling back to another. Required while the seat is on. Crewlet’s
role.
MaxLength: 64
MinLength: 1
Pattern: ^[A-Za-z0-9][A-Za-z0-9-]*$
Optional: {}

Underlying type: string

DatadogSite is the Datadog region a company’s organization is in. It maps onto Crewlet’s provisioning.site, the region’s host name (US1 is datadoghq.com, US3 us3.datadoghq.com, US5 us5.datadoghq.com, EU1 datadoghq.eu, AP1 ap1.datadoghq.com, AP2 ap2.datadoghq.com, US1FED ddog-gov.com).

Validation:

  • Enum: [US1 US3 US5 EU1 AP1 AP2 US1FED]

Appears in:

FieldDescription
US1
US3
US5
EU1
AP1
AP2
US1FED

Underlying type: string

DeletionPolicy is what happens to a company’s data volumes when the Company is deleted.

Validation:

  • Enum: [Retain Delete]

Appears in:

FieldDescription
RetainDeletionPolicyRetain keeps the data volumes and the keyring Secret
-keyring that opens the secrets sealed on them. A Company created
again with the same name and namespace finds both and its estate again.
DeleteDeletionPolicyDelete deletes them with the Company.

DiagnosticsSettings is what the engine may say about its own defects outside the company. It maps onto Crewlet’s diagnostics block.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
issueReports IssueReportsSettingsissueReports is whether the engine reports its own defects to the
project. Crewlet’s diagnostics.issue_reports.
MinProperties: 1
Optional: {}

DictationSettings is how each company’s data pod serves voice dictation from the engine’s own recognizer: Crewlet’s Tier A dictation. Each field left unset takes Crewlet’s default, and a class that says nothing serves it. Allow the data pod about 400 MB more memory, and a fifth of a core per live dictation, where people dictate. A seat pod serves no dictation.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled switches dictation on the data pods; unset is on. Crewlet’s
dictation.enabled.
Optional: {}
recognizerDir stringrecognizerDir is a directory holding a recognizer prepared with
crewlet speech prepare -dir, which the engine reads and never writes.
A relative path is resolved against the store’s directory,
/var/lib/crewlet/store on the data volume. Unset uses the recognizer
the published engine image carries, or downloads it on the first
dictation onto the data volume. At most 4096 bytes once the space
around it is trimmed, as Crewlet counts it. Crewlet’s
dictation.recognizer_dir.
MaxLength: 4096
MinLength: 1
Optional: {}
maxConcurrent integermaxConcurrent is the most dictations a data pod transcribes at once,
from 1 to 1024; past it a person is told the engine is busy. Unset is
4 per available core. Crewlet’s dictation.max_concurrent.
Maximum: 1024
Minimum: 1
Optional: {}
sessionSeconds integersessionSeconds is the longest single dictation, in seconds of time and
of audio, from 1 to 3600. Unset is 300. Crewlet’s
dictation.session_seconds.
Maximum: 3600
Minimum: 1
Optional: {}
idleSeconds integeridleSeconds ends a dictation that sent no audio for this long, from 1
to 300, and no longer than sessionSeconds. Unset is 15, so a
sessionSeconds under 15 needs an idleSeconds too. Crewlet’s
dictation.idle_seconds.
Maximum: 300
Minimum: 1
Optional: {}

DigitalOceanIntegration connects a company’s DigitalOcean team, in which each agent Seat whose spec.integrations.digitalocean is enabled has its own personal access token. DigitalOcean lets no API create a token, so a person creates each one in the control panel and pastes it on the dashboard, and the engine proves its scopes against the seat’s level, seals it, and revokes it itself when the seat is turned off or its token replaced. It maps onto Crewlet’s integrations.digitalocean, so the Integration’s provisioning is Engine and it holds no agent’s credential. DigitalOcean delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
team stringteam is the team the tokens act in, by its name as the control panel’s
team menu shows it, on one line with no leading or trailing space.
Crewlet’s provisioning.team.
MaxLength: 255
MinLength: 1
Pattern: ^[^\s$]([^\r\n\t$]*[^\s$])?$
Required: {}
atlasTokenSecretRef SecretKeyReferenceatlasTokenSecretRef is the Secret key holding a personal access token
made for the company’s atlas alone, with read scopes only, which the
engine reads the team’s Droplets, clusters, databases, load balancers,
domains, apps and buckets with. The engine refuses a token it proves
able to change anything and any seat’s own token. Unset reads nothing
at DigitalOcean for the atlas. Crewlet’s atlas.token, a credential
position.
Optional: {}

Underlying type: string

DigitalOceanLevel is what a seat’s DigitalOcean token may do in the company’s team, a fixed set of DigitalOcean’s custom scopes. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer), least access first. Administer adds access that can outlive the token (cluster credentials, database passwords, consoles), so the engine asks for a fresh step-up before granting it.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

DigitalOceanSeatIntegration is a seat’s own personal access token on DigitalOcean. It maps onto Crewlet’s role integrations.digitalocean and needs the company’s DigitalOcean Integration. A person creates the token in DigitalOcean’s control panel and pastes it on the dashboard; the engine proves its scopes against the seat’s level and seals it.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat has its own DigitalOcean token. False clears
its sealed token at once and revokes it at DigitalOcean. Crewlet’s
enabled.
Required: {}
level DigitalOceanLevellevel is the set of scopes the token must hold. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}

Underlying type: string

EmbeddingProviderType is which embeddings API a company uses. It maps onto Crewlet’s providers.embeddings.type (OpenAI is openai, OpenAICompatible is openai-compatible).

Validation:

  • Enum: [OpenAI OpenAICompatible]

Appears in:

FieldDescription
OpenAIEmbeddingProviderOpenAI is OpenAI’s embeddings API.
OpenAICompatibleEmbeddingProviderOpenAICompatible is any endpoint that speaks it.

EmbeddingSettings is the provider a company computes vectors with, for semantic knowledge search and for recall of a seat’s memory. Each field maps onto the same-named field of Crewlet’s providers.embeddings.

Appears in:

FieldDescriptionDefaultValidation
type EmbeddingProviderTypetype is which embeddings API the provider speaks.OpenAIEnum: [OpenAI OpenAICompatible]
Optional: {}
model stringmodel is the embedding model id. Crewlet’s model. Crewlet trims it of
white space and refuses an embeddings provider with nothing left, as
naming no model.
MaxLength: 256
MinLength: 1
Required: {}
apiKeySecretRef SecretKeyReferenceapiKeySecretRef is the Secret key holding the API key. Crewlet’s
api_key, a credential position. Required for type OpenAI: Crewlet
reads OPENAI_API_KEY from the environment when it is unset, and the
engine’s environment never carries one (see spec.runtime.env). An
OpenAICompatible endpoint that needs no key may omit it.
Optional: {}
baseURL stringbaseURL is the endpoint of an OpenAI-compatible service. Crewlet’s
base_url.
MaxLength: 2048
MinLength: 1
Optional: {}
dimensions integerdimensions is the vector width. Unset takes the model’s own width,
which Crewlet knows for the models it names; any other model needs it
stated, and it must match what the model produces.
Maximum: 4096
Minimum: 64
Optional: {}
maxInputTokens integermaxInputTokens is the most tokens one input may hold. Unset takes the
model’s documented window; it may only lower it.
Minimum: 1
Optional: {}
maxBatchInputs integermaxBatchInputs is the most inputs one request may carry. Unset takes
the model’s documented limit; it may only lower it.
Minimum: 1
Optional: {}
maxBatchTokens integermaxBatchTokens is the most tokens one request may carry, summed over
its inputs. Unset takes the model’s documented limit; it may only
lower it.
Minimum: 1
Optional: {}

EngineClass is a platform’s defaults and guard rails for running Crewlet engines: the image, the size of the data pods, how companies are exposed, and limits. A Company names one in spec.engineClassName; a platform that hosts many tenants usually writes one class for each service tier it offers them.

Anyone who may write a Company may name any class; a class admits the namespaces its spec.allowedNamespaces selects, and no others.

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringEngineClass
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec EngineClassSpecspec is the class’s desired state.Required: {}
status EngineClassStatusstatus is the class’s observed state.MinProperties: 1
Optional: {}

EngineClassSpec is the defaults and guard rails a platform sets once for every Company that names the class, the way a StorageClass does for volumes. The data volume’s floor and the data pods’ startup window follow where the class keeps files (see DataStorage.size and DataPodSettings.startupSeconds): a company’s object store cannot move under them, since Crewlet refuses to start a node that names another store than the one it recorded, so the backend a volume and a window were sized for is the one it runs with. Both floors on data.storage.size are of the volume’s size, three quarters of which the operator states as the broker’s limit, and no pod it runs builds a code cache, so what a filesystem keeps for itself moves neither (DataStorage.size gives the figures).

Appears in:

FieldDescriptionDefaultValidation
allowedNamespaces LabelSelectorallowedNamespaces selects, by their labels, the namespaces whose
Companies may run with this class, as a Gateway’s
allowedRoutes.namespaces.selector does; a Company in any other
namespace is not accepted (Accepted=False, ClassNotAllowed). Unset, or
an empty selector, admits every namespace.
Running with a class is a privilege, and any subject that may write a
Company may name any class: the class carries the platform’s Secrets
it references (platform model keys, telemetry headers, env values)
into each of its companies’ namespaces and engines, its workload
identity onto the engine ServiceAccount, and its scheduling onto the
platform’s nodes. A class with any of those should name the
namespaces it is for. To select namespaces by name, match the label
kubernetes.io/metadata.name, which the API server sets on every
namespace.
Optional: {}
engine EngineSettingsengine is the engine image.Required: {}
data DataPodSettingsdata sizes the pods that hold each company’s estate.Required: {}
seatPools SeatPoolSettingsseatPools is whether each company may run seats on stateless pods of
its own, and how many.
{ policy:Forbidden }MinProperties: 1
Optional: {}
stream StreamSettingsstream is how each company’s event stream runs.{ mode:Embedded }MinProperties: 1
Optional: {}
objects ObjectSettingsobjects is where each company’s files are kept.{ backend:NATS }MinProperties: 1
Optional: {}
exposure ExposureSettingsexposure is how each company is reached from outside its namespace.{ api:map[mode:ClusterInternal] artifacts:map[mode:None] webhooks:map[mode:None] }MinProperties: 1
Optional: {}
networkPolicy NetworkPolicySettingsnetworkPolicy is the NetworkPolicy the operator puts around each
company’s engine pods.
{ mode:Isolated }MinProperties: 1
Optional: {}
podTemplate EnginePodTemplatepodTemplate is what is added to every engine pod.MinProperties: 1
Optional: {}
serviceAccount EngineServiceAccountserviceAccount is what is added to each company’s engine
ServiceAccount.
MinProperties: 1
Optional: {}
service EngineServiceservice is what is added to each company’s engine Service, which the
class’s routes send to.
MinProperties: 1
Optional: {}
platformLLMProviders PlatformLLMProvider arrayplatformLLMProviders are model providers the platform offers to
companies that opt in.
MaxItems: 16
Optional: {}
limits EngineLimitslimits caps what a company may declare.MinProperties: 1
Optional: {}
telemetry TelemetrySettingstelemetry sends the engine’s traces to a collector. Unset exports
nothing.
Optional: {}
retention RetentionSettingsretention is who answers for backups.Optional: {}
signIn SignInSettingssignIn are the limits each company’s own sign-in policy is held
within. Unset, every company requires a second factor, as Crewlet does
by default, and may set its other values anywhere in Crewlet’s ranges.
MinProperties: 1
Optional: {}
dictation DictationSettingsdictation is how each company’s data pod serves voice dictation.
Unset, it serves it on Crewlet’s defaults. The engine reads it only at
start, so a change restarts each company’s data pod.
MinProperties: 1
Optional: {}

EngineClassStatus is what the operator observed about an EngineClass.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions has Accepted: whether the objects the class names in other
namespaces exist, which its schema cannot check. It is False with
SecretNotFound when a Secret or key the class references does not
exist, GatewayAPINotInstalled when it routes through Gateways on a
cluster without the Gateway API, and GatewayNotFound when a Gateway
a route names with its namespace does not exist. Companies of a class
that is not accepted still run, and report what the problem does to
them on their own conditions.
MaxItems: 8
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}

EngineConfigEntry is one top-level key of the company document that spec.engineConfig passes through, and its value.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the key, as Crewlet spells it, such as turn_engine.MaxLength: 63
MinLength: 1
Pattern: ^[a-z][a-z0-9_]*$
Required: {}
value EngineConfigValuevalue is the key’s value: an object, a list, a string, a number or a
boolean, kept as written.
Type:
Required: {}

EngineConfigValue is any JSON value, kept byte for byte as it was written.

Validation:

  • Type:

Appears in:

EngineLimits caps what a Company of a class may declare. The operator refuses to apply a company that exceeds a limit and reports it on the Company. A control plane should refuse such a request before it writes the Company; this is the cluster’s defence in depth.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
maxSeats integermaxSeats is the most Seats a Company may have. Unset is unlimited.Minimum: 0
Optional: {}
maxMCPServers integermaxMCPServers is the most MCPServers a Company may have. Unset is
unlimited.
Minimum: 0
Optional: {}

EnginePodMetadata is metadata added to every engine pod.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
labels object (keys:string, values:string)labels are added to every engine pod.MaxProperties: 32
Optional: {}
annotations object (keys:string, values:string)annotations are added to every engine pod. Those under crewlet.ai/
are the operator’s own, which it reads back off the pods (whether a
data pod opens the leaf listener among them), so a class may not set
one. Four are merged rather than copied: a service mesh’s port
exclusions, Istio’s traffic.sidecar.istio.io/excludeInboundPorts and
excludeOutboundPorts and Linkerd’s config.linkerd.io/skip-inbound-ports
and skip-outbound-ports. The operator adds the leaf port, 7422, to the
inbound ones on a data pod whose leaf listener is open and to the
outbound ones on a seat pod, after the ports given here (for Linkerd’s,
where none is given here, after those the Company’s namespace gives),
because Crewlet reads a seat pod’s leaf link off its own socket and a
sidecar that ends the connection hides what the far end has taken.
MaxProperties: 32
Optional: {}

EnginePodSpec is the part of a pod’s spec a class may set on engine pods. It is a closed list rather than a whole PodSpec: the operator owns the containers, volumes, probes and security context, because the engine’s data safety depends on them.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
nodeSelector object (keys:string, values:string)nodeSelector constrains engine pods to nodes with these labels.MaxProperties: 32
Optional: {}
tolerations Toleration arraytolerations let engine pods run on tainted nodes.MaxItems: 32
Optional: {}
affinity Affinityaffinity is the engine pods’ scheduling affinity.Optional: {}
topologySpreadConstraints TopologySpreadConstraint arraytopologySpreadConstraints spread engine pods across topology domains.MaxItems: 8
Optional: {}
runtimeClassName stringruntimeClassName is the RuntimeClass engine pods run with, for example
a sandboxed runtime such as gVisor.
MaxLength: 253
MinLength: 1
Optional: {}
priorityClassName stringpriorityClassName is the PriorityClass of engine pods.MaxLength: 253
MinLength: 1
Optional: {}
env ClassEnvVar arrayenv adds environment variables to the engine container of every
Company of the class: platform wiring that is the same for all of
them, such as the address of the platform’s own API. Every value,
one from a Secret included, reaches every tenant of the class: code
the tenant runs in the engine’s pod can read its environment. They are
the engine’s environment, not that of the processes it starts: a Stdio
tool server is handed only the part Crewlet’s allowlist names, such as
PATH and the TLS and proxy variables, a harness that part and the
variables its Crewlet profile passes through, such as GeminiCLI’s
GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION, and a seat’s executor
run that part alone (the allowlist: PATH, the locale, TERM, TZ, the
TLS trust and proxy variables), its TZ set to the zone Crewlet reads
a limit’s reset in (UTC where TZ names no zone it knows). So a
variable a tool server reads goes in its MCPServer’s env
(docs/guides/tool-servers.md), one a harness reads in the engine’s
pod in its LLMProvider’s spec.env, and one a seat’s executor run reads
in the Seat’s spec.sandbox.env. A Company’s spec.runtime.env is merged over
this env by name. The same names are refused as there: those
starting with CREWLET_ or OTEL_, and ANTHROPIC_API_KEY and
OPENAI_API_KEY.
MaxItems: 32
Optional: {}

EnginePodTemplate is what a class adds to every engine pod.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
metadata EnginePodMetadataRefer to Kubernetes API documentation for fields of metadata.MinProperties: 1
Optional: {}
spec EnginePodSpecspec is merged into every engine pod’s spec.MinProperties: 1
Optional: {}

EngineService is what a class adds to the Service -engine the operator creates in front of each Company’s data pods, which the class’s routes send to. It has no Crewlet field: the engine never sees its Service.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
annotations object (keys:string, values:string)annotations are added to the Service, for a load balancer controller
that reads a backend’s settings from it. On GKE an Ingress takes its
health check from cloud.google.com/backend-config, naming a
BackendConfig in each company’s namespace: point its check at port
8080, path /ready, since the public port the webhooks’ route sends to
answers 404 on every path it does not serve, / included.
MaxProperties: 16
Optional: {}

EngineServiceAccount is what a class adds to the ServiceAccount the operator creates for each Company’s engine pods.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
annotations object (keys:string, values:string)annotations are added to the ServiceAccount, for a workload identity
that is bound through one: eks.amazonaws.com/role-arn for IRSA,
iam.gke.io/gcp-service-account for GKE Workload Identity. That is how
the engine reaches an S3 bucket when its Company names no
spec.objects.credentialsSecretRef. The same annotations go on every
company’s ServiceAccount, so the identity is every tenant’s: scope it
per tenant (a role per company, or a session policy limited to the
company’s prefix), or give each Company keys of its own instead.
MaxProperties: 16
Optional: {}

EngineSettings is the engine image a class runs.

Appears in:

FieldDescriptionDefaultValidation
image stringimage is the Crewlet engine image, by tag or by digest, for example
registry.example.com/crewlet:v1.2.3. There is no default: the platform
decides which build its tenants run. A Company’s spec.runtime.version
replaces the tag, so an image pinned by digest cannot be combined with
allowVersionOverride.
MaxLength: 512
MinLength: 1
Required: {}
imagePullPolicy PullPolicyimagePullPolicy is the pull policy of the engine container. Unset
takes the Kubernetes default for the image reference.
Enum: [Always IfNotPresent Never]
Optional: {}
imagePullSecrets LocalObjectReference arrayimagePullSecrets name Secrets in each Company’s namespace that pull
the image. They are referenced, not copied: the platform puts them
into the tenant namespaces it creates.
MaxItems: 8
Optional: {}
allowVersionOverride booleanallowVersionOverride lets a Company of this class choose its own engine
version with spec.runtime.version. Off by default: the platform
usually decides which version a class’s tenants run.
Optional: {}
preflight PreflightModepreflight is whether a Company’s data pods move to another engine
image only once that image has accepted their configuration. Under
Required the operator first runs the new image as a Job that runs
crewlet validate on the pods’ crewlet.yaml and the company document
the engine runs, reaching nothing; until it passes the pods keep the
image they run and RuntimeReady says why. A newer engine that would
refuse the configuration at boot is so stopped before any pod is
replaced. A Company’s first start has no running image and is not
held. Off by default.
DisabledEnum: [Required Disabled]
Optional: {}

EngineStatus is what runs a company.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
image stringimage is the engine image the data pods last ran on, recorded once
every data pod ran it and was ready. A rollout that has not finished
leaves the previous image here.
MaxLength: 512
MinLength: 1
Optional: {}
version stringversion is the tag of that image, such as v1.2.3; unset for an image
pinned by digest alone. The engine migrates its data forward only, so
the operator refuses to roll the data pods to an image whose tag is an
older semantic version than this one (RuntimeReady=False,
DowngradeRefused). The operator also records it on each data volume
claim (the annotation crewlet.ai/engine-version), which keeps the floor
when this status is lost. A version that never became ready is never
recorded, so a rollout that failed can still be taken back.
MaxLength: 128
MinLength: 1
Optional: {}

EnvVar is an environment variable set on the engine’s pods. Unlike SecretEnvVar it may carry a literal value, because it is not a Crewlet credential position but platform wiring (a feature flag, an endpoint); a sensitive value is referenced from a Secret with valueFrom, which Kubernetes resolves when it starts the container, so the value never appears in the pod template.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the variable’s name.MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Required: {}
value stringvalue is the variable’s literal value. An empty string is a valid
value, which is why the field is a pointer.
MaxLength: 4096
Optional: {}
valueFrom SecretValueSourcevalueFrom reads the value from a Secret key in the Company’s namespace.Optional: {}

ExpoIntegration connects a company’s Expo account, on which each agent Seat whose spec.integrations.expo is enabled has its own robot user. Expo lets no token create robots, so a person adds each one at Expo and pastes its access token on the dashboard, and the engine checks the robot’s role against the seat’s level and seals the token. It maps onto Crewlet’s integrations.expo, so the Integration’s provisioning is Engine and it holds no agent’s credential. Expo delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
accountName stringaccountName is the Expo account or organization the robots act for, as
it appears in expo.dev/accounts/. Crewlet’s
provisioning.account_name.
MaxLength: 128
MinLength: 1
Pattern: ^[^@/\s$][^/\s$]*$
Required: {}
atlasTokenSecretRef SecretKeyReferenceatlasTokenSecretRef is the Secret key holding the access token of a
robot user made for the company’s atlas alone, with the Viewer role,
which the engine reads the account’s projects and their latest builds
with. The engine refuses a robot with any other role and any seat’s
own robot. Unset reads nothing at Expo for the atlas. Crewlet’s
atlas.token, a credential position.
Optional: {}

Underlying type: string

ExpoLevel is the Expo role a seat’s robot user holds on the company’s account. It maps onto Crewlet’s level (Viewer viewer, Runner runner, Developer developer, ReleaseManager release_manager), least access first.

Validation:

  • Enum: [Viewer Runner Developer ReleaseManager]

Appears in:

FieldDescription
Viewer
Runner
Developer
ReleaseManager

ExpoSeatIntegration is a seat’s own robot user on Expo. It maps onto Crewlet’s role integrations.expo and needs the company’s Expo Integration. A person adds the robot at Expo and pastes its access token on the dashboard; the engine checks that the robot holds the seat’s level and seals the token.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat has its own Expo robot user. False clears
its sealed token at once and asks a person to delete the robot at Expo.
Crewlet’s enabled.
Required: {}
level ExpoLevellevel is the Expo role the robot must hold on the account. Unset is
Viewer. Crewlet’s level.
Enum: [Viewer Runner Developer ReleaseManager]
Optional: {}

ExposureSettings is how a class’s companies are reached.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
webhooks WebhookExposurewebhooks is how vendors’ webhooks reach the engine.{ mode:None }MinProperties: 1
Optional: {}
api APIExposureapi is how the engine’s API is reached.{ mode:ClusterInternal }MinProperties: 1
Optional: {}
artifacts ArtifactExposureartifacts is how browsers reach the artifact origin.{ mode:None }MinProperties: 1
Optional: {}
trustedProxies string arraytrustedProxies are the address blocks of what forwards requests to
the engine: the Gateway’s proxies or the Ingress controller of the
class’s routes, and whatever balances in front of them. Crewlet takes
a request’s client address from its X-Forwarded-For header only when
the request arrives from one of these, and otherwise uses the address
it arrives from, which behind a proxy is the proxy’s for every
caller: the sign-in throttle then counts everyone’s attempts at one
login together, so a stranger guessing at a person’s login holds up
that person’s own sign-in, and the audit trail names the proxy. Each
is a canonical IPv4 or IPv6 CIDR narrower than the whole address
space; a single host is a /32 or /128. Unset, no forwarded header is
believed. Crewlet’s api.trusted_proxies.
MaxItems: 16
MinItems: 1
items:MaxLength: 43
Optional: {}

ExternalExposure is where the forwarder of a class’s webhooks runs, when something outside the operator forwards them (webhooks.mode External).

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
forwarders NetworkPolicyPeer arrayforwarders are the pods that forward webhooks to the engine’s public
port: a tunnel’s or a relay’s pods in the cluster. They are required
under networkPolicy Isolated, which admits them to that port and to
nothing else of the engine, and refused under any other mode, which
has no policy to admit them to. A forwarder outside the pod network (a
load balancer of your own that sends traffic from the nodes or from
outside the cluster) cannot be admitted by namespace: isolate those
engines with your CNI’s own policy and networkPolicy.mode None.
MaxItems: 16
MinItems: 1
Optional: {}

GatewayExposure attaches a company’s routes to Gateways.

Appears in:

FieldDescriptionDefaultValidation
parentRefs GatewayParentReference arrayparentRefs are the Gateways the HTTPRoute attaches to.MaxItems: 8
MinItems: 1
Required: {}
proxyNamespaces string arrayproxyNamespaces are the namespaces the pods that carry the Gateways’
traffic run in. Under networkPolicy Isolated they are admitted to the
one port of the engine the route reaches: the public listener for the
webhooks’ route, the API port for the API’s, the artifact listener for
the artifacts’. Unset is the namespaces
of parentRefs, which is right for
implementations that run a proxy beside each Gateway (Istio, for
example); implementations with a shared data plane run it elsewhere
(Envoy Gateway in envoy-gateway-system, for example) and need it named
here.
MaxItems: 8
MinItems: 1
items:MaxLength: 63
items:MinLength: 1
items:Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}

GatewayParentReference names a Gateway API Gateway (or one listener of it) that the operator attaches a company’s HTTPRoute to.

Appears in:

FieldDescriptionDefaultValidation
namespace stringnamespace is the Gateway’s namespace. Unset is the Company’s own
namespace.
MaxLength: 63
MinLength: 1
Optional: {}
name stringname is the Gateway’s name.MaxLength: 253
MinLength: 1
Required: {}
sectionName stringsectionName is the name of one listener of the Gateway. Unset attaches
to every listener that accepts the route.
MaxLength: 253
MinLength: 1
Optional: {}

GitHubApp is the GitHub App a seat acts as. An app carries exactly one bot identity, so every agent seat that works on GitHub has its own.

Appears in:

FieldDescriptionDefaultValidation
id integerid is the app’s numeric id. Crewlet’s app_id.Minimum: 1
Required: {}
slug stringslug is the app’s slug; the bot’s login, and so how the seat is
mentioned, derives from it. Crewlet’s app_slug.
MaxLength: 128
MinLength: 1
Pattern: ^[a-z0-9][a-z0-9-]*$
Required: {}
installationID integerinstallationID is the app’s installation on the organization. Unset
while the app is created but not yet installed. Crewlet’s
installation_id.
Minimum: 1
Optional: {}
credentialsSecretRef SecretReferencecredentialsSecretRef is a Secret holding the app’s credentials under
the keys privateKey (the app’s PEM key) and webhookSecret (which
verifies the app’s own webhook deliveries). Crewlet’s private_key
and webhook_secret, both credential positions. The Secret is the
seat’s alone: Crewlet refuses one another seat or an Integration names
too.
Required: {}

GitHubIntegration turns GitHub on for a company: webhooks from github.com or a GitHub Enterprise Server wake the seats they concern. It maps onto Crewlet’s integrations.github. Each agent seat’s own GitHub App is in its Seat’s spec.integrations.github; the GitHub tools are an MCPServer.

Appears in:

FieldDescriptionDefaultValidation
url stringurl is the base URL of a GitHub Enterprise Server, such as
https://github.example.com. Unset is github.com. Crewlet’s url.
MaxLength: 2048
MinLength: 1
Optional: {}
webhookSecretRef SecretKeyReferencewebhookSecretRef is the Secret key holding the secret that verifies
webhooks delivered to the company-wide route. Crewlet’s
webhook_secret, a credential position.
Required: {}
tokenSecretRef SecretKeyReferencetokenSecretRef is the Secret key holding an organization token with
the admin:org_hook scope, which the engine registers the company’s
webhooks with. Unset registers none. Crewlet’s token, a credential
position.
Optional: {}
provisioning GitHubProvisioningprovisioning is where the webhooks are registered. It requires
tokenSecretRef, without which the engine registers nothing.
MinProperties: 1
Optional: {}

Underlying type: string

GitHubPermission is how much of one GitHub App permission a seat holds. It maps onto the level GitHub’s API takes for it (Read is read, Write is write), and the dashboard shows it under GitHub’s names, Read-only and Read and write. A permission left unset is GitHub’s No access.

Validation:

  • Enum: [Read Write]

Appears in:

FieldDescription
Read
Write

GitHubPermissions are the GitHub App permissions a seat holds, one field per permission GitHub defines for an app, each under GitHub’s own key. They map onto Crewlet’s role integrations.github.permissions. A permission left unset is No access; Metadata, which GitHub grants every app read-only, is not listed. The engine registers the seat’s app with these permissions and narrows each installation token to them, so lowering one applies to the next token, and raising one past what the app was registered with waits for an owner of the organization to accept the app’s new permissions.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
contents GitHubPermissioncontents is the repository’s code, branches and releases. Crewlet’s
contents.
Enum: [Read Write]
Optional: {}
issues GitHubPermissionissues is the repository’s issues and their comments. Crewlet’s
issues.
Enum: [Read Write]
Optional: {}
pullRequests GitHubPermissionpullRequests is the repository’s pull requests, their reviews and
comments. Crewlet’s pull_requests.
Enum: [Read Write]
Optional: {}
checks GitHubPermissionchecks is the check runs and suites on the repository’s commits.
Crewlet’s checks.
Enum: [Read Write]
Optional: {}
actions GitHubPermissionactions is the repository’s workflow runs and artifacts. Crewlet’s
actions.
Enum: [Read Write]
Optional: {}
deployments GitHubPermissiondeployments is the repository’s deployments and their statuses.
Crewlet’s deployments.
Enum: [Read Write]
Optional: {}
workflows GitHubPermissionworkflows lets the seat push a commit that changes a file under
.github/workflows, which GitHub refuses otherwise. GitHub offers it as
Read and write alone, and a push needs contents Write too. The same
grant lets
the seat’s branches run a workflow it rewrote with the secrets the
repository hands its runs, so pair it with branch protection and
environment-scoped secrets. Crewlet’s workflows.
Enum: [Read Write]
Optional: {}

GitHubProvisioning is where the engine registers the company’s webhooks at GitHub. It maps onto Crewlet’s integrations.github.provisioning. The engine registers them with the organization token (tokenSecretRef); without one it registers nothing and each seat’s own app delivers its own webhooks.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
org stringorg is the GitHub organization holding the repositories. Crewlet’s
org.
MaxLength: 39
MinLength: 1
Pattern: ^[A-Za-z0-9-]+$
Optional: {}
repos string arrayrepos are repositories, as owner/name, to register a webhook on one by
one. Crewlet’s repos.
MaxItems: 128
items:MaxLength: 201
items:Pattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$
Optional: {}
orgWebhook ContainerWebhookModeorgWebhook is whether one organization hook replaces the
per-repository ones. Unset is Auto. Crewlet’s org_webhook.
Enum: [Auto Require Never]
Optional: {}

GitHubSeatIntegration is a seat’s identity and access on GitHub. It maps onto Crewlet’s role integrations.github and needs the company’s GitHub Integration.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat is on GitHub. False keeps the block, and
the engine suspends the app’s installation rather than uninstalling
it, so turning it back on needs no person. Crewlet’s enabled.
Required: {}
permissions GitHubPermissionspermissions are the GitHub App permissions the seat holds. Unset is
No access on every permission but Metadata. Crewlet’s permissions.
MinProperties: 1
Optional: {}
repos string arrayrepos are the repositories the seat’s tokens are narrowed to, as
owner/name. Unset is every repository the app’s installation covers,
which is the organization’s choice at GitHub. Where the Integration
lists provisioning repos, each must be one of them: Crewlet refuses
another, which the engine’s dry run reports as Invalid on the Seat.
Crewlet’s repos.
MaxItems: 64
items:MaxLength: 201
items:Pattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$
Optional: {}
app GitHubAppapp is the GitHub App the seat acts as.Optional: {}

GitHubSeatStatus is the GitHub side of a seat, as the operator computed it.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
webhookURL stringwebhookURL is the URL the seat’s GitHub App must deliver webhooks to,
/webhooks/github/. Like the Slack requestURL it
is set whenever the Company has a GitHub Integration and a public base
URL, before the seat’s app exists, and it never changes for a seat.
MaxLength: 2048
MinLength: 1
Optional: {}

Underlying type: string

GitLabAccessLevel is a GitLab role, the level of a seat’s membership in the group and its projects, under GitLab’s own name. It maps onto Crewlet’s access_level, the integer GitLab’s Members API takes (Guest is 10, Planner 15, Reporter 20, Developer 30, Maintainer 40, Owner 50). Security Manager, a beta GitLab leaves off by default, and Minimal Access, which grants an agent nothing, are not offered. The token the engine mints follows the role: below Developer it can read the API and the repositories but not push.

Validation:

  • Enum: [Guest Planner Reporter Developer Maintainer Owner]

Appears in:

FieldDescription
Guest
Planner
Reporter
Developer
Maintainer
Owner

Underlying type: string

GitLabAccountOwner is where the engine creates the seats’ GitLab service accounts. It maps onto Crewlet’s provisioning mode (Group is group, Instance is instance).

Validation:

  • Enum: [Group Instance]

Appears in:

FieldDescription
GroupGitLabAccountOwnerGroup creates them under the group, which is all
GitLab.com offers.
InstanceGitLabAccountOwnerInstance creates them on a self-managed instance
itself, with an instance administrator’s token.

GitLabEngineProvisioning is how the engine provisions the seats’ GitLab accounts under provisioning Engine. It maps onto Crewlet’s integrations.gitlab.provisioning: for each agent Seat whose spec.integrations.gitlab is enabled, the engine creates a service account, makes it a member of the group, or of the seat’s projects, at the seat’s role, mints its token into an entry of its secret store it names for the seat, and registers the webhook. Each seat’s role and projects are on its Seat.

Appears in:

FieldDescriptionDefaultValidation
group stringgroup is the top-level group, by its path, the service accounts join
and the webhook is registered on. Crewlet’s group.
MaxLength: 255
MinLength: 1
Pattern: ^[A-Za-z0-9_.][A-Za-z0-9_./-]*$
Required: {}
adminTokenSecretRef SecretKeyReferenceadminTokenSecretRef is the Secret key holding a personal access token
with the api scope of an Owner of the group (of an instance
administrator, for accountOwner Instance), which creates and removes
the service accounts. Crewlet’s admin_token, a credential position.
Required: {}
accountOwner GitLabAccountOwneraccountOwner is where the service accounts are created. Unset is
Group. Crewlet’s mode.
Enum: [Group Instance]
Optional: {}
usernamePrefix stringusernamePrefix is put before each seat’s handle to form its account’s
username, for a group shared with people. Crewlet’s
username_prefix.
MaxLength: 32
MinLength: 1
Pattern: ^[A-Za-z0-9_.-]+$
Optional: {}
projects string arrayprojects are the projects, by path, a seat’s spec.integrations.gitlab
projects may name, and the ones the webhook is registered on one by
one when no group hook is. Crewlet’s projects.
MaxItems: 128
items:MaxLength: 255
items:MinLength: 1
items:Pattern: ^[A-Za-z0-9_.][A-Za-z0-9_./-]*$
Optional: {}
groupWebhook ContainerWebhookModegroupWebhook is whether one group hook replaces the per-project ones.
Unset is Auto. Crewlet’s group_webhook.
Enum: [Auto Require Never]
Optional: {}

GitLabIntegration turns GitLab on for a company: webhooks from a GitLab instance wake the seats they concern. It maps onto Crewlet’s integrations.gitlab. Each seat’s GitLab account and access are in its Seat’s spec.integrations.gitlab.

Appears in:

FieldDescriptionDefaultValidation
url stringurl is the instance’s base URL, such as https://gitlab.com. Crewlet’s
url.
MaxLength: 2048
MinLength: 1
Required: {}
signingSecretRef SecretKeyReferencesigningSecretRef is the Secret key holding the signing token every
webhook delivery is verified against: whsec_ followed by the standard
base64 of 32 bytes, the only form GitLab signs with (its “Generate
signing token” button makes one). Crewlet’s signing_secret, a
credential position.
Required: {}
tokenSecretRef SecretKeyReferencetokenSecretRef is the Secret key holding a personal access token with
the read_api scope, which the engine reads an issue’s or merge
request’s participants with, so that everyone in a thread hears its
activity. Unset routes to the people a delivery names only. Crewlet’s
token, a credential position.
Optional: {}
webhookName stringwebhookName is the name of the hooks the engine registers, which is
how it tells its own from others on the instance: two deployments
watching one instance need two names. Unset is crewlet. Crewlet’s
webhook_name.
MaxLength: 255
MinLength: 1
Optional: {}
engineProvisioning GitLabEngineProvisioningengineProvisioning is how the engine creates the seats’ accounts.
Required with provisioning Engine, and not allowed with External.
Optional: {}

GitLabSeatIntegration is a seat’s account and access on GitLab. It maps onto Crewlet’s role integrations.gitlab and needs the company’s GitLab Integration. Under its provisioning Engine the engine creates the seat’s service account, gives it the role in the projects, and mints its token. Under External the account is made outside the engine, which changes nothing at GitLab: enabled then turns the seat’s own GitLab tools on and off, and the engine reports the seat’s access as managed outside Crewlet.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat is on GitLab. False keeps the account,
which the engine blocks and whose tokens it revokes, so its history
keeps its author and turning it back on needs no person. Crewlet’s
enabled.
Required: {}
accessLevel GitLabAccessLevelaccessLevel is the seat’s GitLab role. One of it and memberRoleID is
required while the seat is on. Crewlet’s access_level.
Enum: [Guest Planner Reporter Developer Maintainer Owner]
Optional: {}
memberRoleID integermemberRoleID is a custom role of the group, by its id, in place of
accessLevel: GitLab Ultimate only. The engine checks it against the
group’s roles on every pass, and reports one that no longer exists
rather than falling back to another. Crewlet’s member_role_id.
Minimum: 1
Optional: {}
projects string arrayprojects are the projects, by path, the seat is a member of. Unset is
the whole group. Where the Integration lists engineProvisioning
projects, each must be one of them, so a seat cannot widen the
company’s reach: Crewlet refuses another, which the engine’s dry run
reports as Invalid on the Seat. Crewlet’s projects.
MaxItems: 128
items:MaxLength: 255
items:MinLength: 1
items:Pattern: ^[A-Za-z0-9_.][A-Za-z0-9_./-]*$
Optional: {}

GoogleAdsCustomer is one Google Ads account agents may be given. It maps onto one entry of Crewlet’s integrations.google_ads.customers.

Appears in:

FieldDescriptionDefaultValidation
id stringid is the account’s 10-digit customer ID, without hyphens, such as
1234567890 for 123-456-7890. Crewlet’s id.
MaxLength: 10
MinLength: 10
Pattern: ^[0-9]\{10\}$
Required: {}
manager stringmanager is the 10-digit customer ID of the manager account the
identity is added to, where it reaches this account through a
manager; the engine sends it as login-customer-id. Unset is an
account the identity is added to directly. Crewlet’s manager.
MaxLength: 10
MinLength: 10
Pattern: ^[0-9]\{10\}$
Optional: {}

GoogleAdsIntegration lets agent seats read and manage the company’s Google Ads accounts through the engine’s tools, each as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person adds to each account at the access level the seat may act with. It maps onto Crewlet’s integrations.google_ads, which needs integrations.google_cloud: without the company’s Google Cloud Integration the engine’s dry run refuses it, Invalid on this Integration. It holds no credential, the engine creates nothing at Google Ads, and Google Ads delivers nothing to the engine, so the Integration’s provisioning is External and it has no webhook. An empty block is a setting of its own: every account an agent’s identity is added to directly.

Appears in:

FieldDescriptionDefaultValidation
customers GoogleAdsCustomer arraycustomers are the Google Ads accounts agents may be given, each once,
with the manager account it is reached through. Unset is every
account an agent’s identity is added to directly. Crewlet’s
customers.
MaxItems: 200
Optional: {}
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats, in this namespace, an agent’s held
acts, the ones an administrator must approve, are routed to first. Only
an administrator answers one, at a fresh sign-in; unset asks every
administrator. Crewlet’s approvers, which names a seat by its handle.
MaxItems: 64
Optional: {}
spend GrowthSpendspend caps each account’s daily capacity, in its own currency. An
account without both caps refuses every spend call. Crewlet’s
spend.
MinProperties: 1
Optional: {}

Underlying type: string

GoogleAdsLevel is what a seat may do in each of its Google Ads accounts, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read runs reports and planning and reads every setting, changing nothing; Operate adds pausing, lowering budgets and bids, negatives and other changes that spend nothing more; Administer adds asking an administrator to approve each change that spends, publishes ad text, removes, or touches users, links and billing, every spend held to the account’s caps. Raising a seat to Operate or Administer needs a fresh sign-in on the dashboard. The access level a person gives the seat’s identity in each account is Google’s own ceiling beside it.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

GoogleAdsSeatIntegration is a seat’s access to the company’s Google Ads accounts. It maps onto Crewlet’s role integrations.google_ads and needs the company’s Google Ads Integration. The seat signs in as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person adds to each account; the engine mints its tokens inside itself at use and holds every call to the seat’s level and accounts, so no Seat names a Google Ads credential.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may reach Google Ads. False turns its
Google growth identity off once no other Google growth product is on
for it. Crewlet’s enabled.
Required: {}
level GoogleAdsLevellevel is what the seat may do in each of its accounts. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
customers string arraycustomers are the 10-digit customer IDs, without hyphens, of the
accounts the seat may reach, each within the Google Ads Integration’s
customers where it lists them: Crewlet refuses another, which the
engine’s dry run reports as Invalid on the Seat. Required while the
seat is on. Crewlet’s customers.
MaxItems: 200
items:MaxLength: 10
items:MinLength: 10
items:Pattern: ^[0-9]\{10\}$
Optional: {}

GoogleAnalyticsIntegration lets agent seats read and manage the company’s Google Analytics 4 properties through the engine’s tools, each as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person adds to each property at the role the seat may act with. It maps onto Crewlet’s integrations.google_analytics, which needs integrations.google_cloud: without the company’s Google Cloud Integration the engine’s dry run refuses it, Invalid on this Integration. Its one credential is the optional OAuth client’s secret, which an Administrator signs in as so the engine adds each agent’s identity itself. The engine creates nothing else at Google Analytics, and Google Analytics delivers nothing to the engine, so the Integration’s provisioning is External and it has no webhook. An empty block is a setting of its own: every property an agent’s identity is added to.

Appears in:

FieldDescriptionDefaultValidation
properties string arrayproperties are the numeric Google Analytics property IDs agents may be
given, such as 123456789 from properties/123456789, each once. Unset
is every property an agent’s identity is added to. Crewlet’s
properties.
MaxItems: 200
items:MaxLength: 20
items:MinLength: 1
items:Pattern: ^[0-9]+$
Optional: {}
oauth GoogleOAuthClientoauth is the company’s own Google OAuth client, a Web application in a
Google Cloud project it controls, which a Google Analytics
Administrator signs in as on the engine’s dashboard, so the engine adds
each agent’s identity to its properties itself. The sign-in signs no
agent’s call. Unset, the sign-in is made as the Google Cloud
Integration’s signInClient; with neither, a person adds each identity
by hand. The Google Play Integration may name the same client.
Crewlet’s oauth.
Optional: {}
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats, in this namespace, an agent’s held
acts, the ones an administrator must approve, are routed to first. Only
an administrator answers one, at a fresh sign-in; unset asks every
administrator. Crewlet’s approvers, which names a seat by its handle.
MaxItems: 64
Optional: {}

Underlying type: string

GoogleAnalyticsLevel is what a seat may do in each of its Google Analytics properties, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read runs every report and reads every setting, changing nothing; Operate adds reversible changes made at once and recorded, such as key events, custom definitions, audiences and settings; Administer adds asking an administrator to approve each account, access, link, key or irreversible change. Raising a seat to Operate or Administer needs a fresh sign-in on the dashboard. The role a person gives the seat’s identity in each property is Google’s own ceiling beside it.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

Underlying type: string

GoogleAnalyticsRole is the Google Analytics role a seat at Operate runs as, narrower than Operate’s own. It maps onto Crewlet’s role (Marketer marketer). Marketer holds the seat’s changes to Marketer’s: audiences, key events, attribution settings and event create rules, each made at once and recorded; the engine refuses any other change before Google is asked.

Validation:

  • Enum: [Marketer]

Appears in:

FieldDescription
Marketer

GoogleAnalyticsSeatIntegration is a seat’s access to the company’s Google Analytics 4 properties. It maps onto Crewlet’s role integrations.google_analytics and needs the company’s Google Analytics Integration. The seat signs in as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person adds to each property; the engine mints its tokens inside itself at use and holds every call to the seat’s level and properties, so no Seat names a Google Analytics credential.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may reach Google Analytics. False turns its
Google growth identity off once no other Google growth product is on
for it. Crewlet’s enabled.
Required: {}
level GoogleAnalyticsLevellevel is what the seat may do in each of its properties. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
role GoogleAnalyticsRolerole runs a seat at level Operate as Google Analytics’ Marketer, with
Marketer’s changes alone, and is set with level Operate only. Unset,
Operate makes every reversible change, as Editor. The identity needs
Marketer in each property, which a person adds: Google Analytics’ API
can neither grant Marketer nor list it, so the engine reports the
seat’s role as not checked. Crewlet’s role.
Enum: [Marketer]
Optional: {}
properties string arrayproperties are the numeric Google Analytics property IDs the seat may
reach, such as 123456789, each within the Google Analytics
Integration’s properties where it lists them: Crewlet refuses another,
which the engine’s dry run reports as Invalid on the Seat. Required
while the seat is on. Crewlet’s properties.
MaxItems: 200
items:MaxLength: 20
items:MinLength: 1
items:Pattern: ^[0-9]+$
Optional: {}

GoogleCloudIntegration connects a company’s Google Cloud, in which the engine makes one service account for each agent Seat whose spec.integrations.googleCloud is enabled, in the identity project, and grants it that seat’s level on the projects the Seat names. The engine acts as the provisioner through Workload Identity Federation, signing with a key of its own whose public half the provider holds, so no service account key is ever made, and it issues each agent’s access token at use, for an hour, sealing none. It maps onto Crewlet’s integrations.google_cloud, so the Integration’s provisioning is Engine. Google Cloud delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
identityProject stringidentityProject is the ID of the project kept for Crewlet’s own service
accounts: the provisioner, crewlet-provisioner@.iam.gserviceaccount.com,
and every agent’s account are made there. Crewlet’s
provisioning.identity_project.
MaxLength: 30
MinLength: 6
Pattern: ^[a-z][a-z0-9-]\{4,28\}[a-z0-9]$
Required: {}
provider stringprovider is the full resource name of the Workload Identity Federation
provider holding the public half of the federation key,
projects//locations/global/workloadIdentityPools//providers/.
It is also the audience of every token the engine signs. Unset until
the provider exists: the engine then makes no agent’s account and
reports the step that creates it. Crewlet’s provisioning.provider.
MaxLength: 144
MinLength: 69
Pattern: ^projects/[0-9]\{1,20\}/locations/global/workloadIdentityPools/[a-z0-9-]\{4,32\}/providers/[a-z0-9-]\{4,32\}$
Optional: {}
atlasRead booleanatlasRead lets the atlas search what each project the provisioner
reads runs (instances, databases, Cloud Run services, functions,
buckets and topics), by name and type, as the service account
crewlet-atlas in the identity project, which holds one permission.
Unset is false. Turning it on changes the Cloud Shell block the
engine’s card shows: run it again. No agent depends on it. Crewlet’s
provisioning.atlas_read.
Optional: {}
federationKeySecretRef SecretKeyReferencefederationKeySecretRef is the Secret key holding the engine’s
federation key: an ES256 private key, one PKCS#8 PEM block holding a
P-256 key, whose public half the provider holds. It signs nothing but
a ten-minute token for the provider, and through it the engine acts as
the provisioner, which can make service accounts in the identity
project and grant the agents’ levels. Crewlet’s
provisioning.federation_key, a credential position.
Required: {}
signInClient GoogleOAuthClientsignInClient is the company’s own Google OAuth client, a Web
application in a Google Cloud project it controls, that every Google
sign-in is made as: the AdMob and AdSense Integrations’ sign-ins, and
the admin sign-ins of the Google Analytics and Google Play
Integrations. A product’s own oauth overrides it for that product.
Unset, each product signs in as its own oauth alone. Crewlet’s
sign_in_client.
Optional: {}

Underlying type: string

GoogleCloudLevel is what a seat’s Google Cloud service account is granted on each of its projects, least access first. It maps onto Crewlet’s level (Viewer viewer, Operator operator, Administer administer). Viewer reads the project, Compute, GKE, Cloud Run, Cloud SQL, DNS, buckets, metrics and logs, and calls Google’s MCP tools; Operator adds restarting and scaling VMs, pods and Cloud SQL, running Cloud Run jobs, editing alerting and reading and writing Cloud Storage objects; Administer adds managing VMs, networks, firewalls, clusters, Cloud SQL, DNS and buckets, which can leave access behind in them, and granting it needs a fresh sign-in on the dashboard.

Validation:

  • Enum: [Viewer Operator Administer]

Appears in:

FieldDescription
Viewer
Operator
Administer

GoogleCloudSeatIntegration is a seat’s own service account on Google Cloud. It maps onto Crewlet’s role integrations.google_cloud and needs the company’s Google Cloud Integration, under which the engine makes the account in the identity project, grants it the seat’s level on each of its projects, and issues its access token at use, for an hour, which it hands to the seat’s Google Cloud tool servers and writes into the seat’s box for the Google Cloud CLI itself.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat has its own Google Cloud service account.
False disables the account and removes its roles from every project;
the account and its audit history stay, and true again enables it and
grants its roles again. Crewlet’s enabled.
Required: {}
level GoogleCloudLevellevel is what the account is granted on each of its projects. Unset is
Viewer. Crewlet’s level.
Enum: [Viewer Operator Administer]
Optional: {}
projects string arrayprojects are the Google Cloud project IDs the seat’s level is granted
on, each one prepared for Crewlet, the first also the Google Cloud
CLI’s default project in the seat’s box. Required while the seat is on:
an empty list is no project, never every project. Crewlet’s
projects.
MaxItems: 128
items:MaxLength: 284
items:MinLength: 6
items:Pattern: ^([a-z0-9][a-z0-9.-]*[a-z0-9]:)?[a-z][a-z0-9-]\{4,28\}[a-z0-9]$
Optional: {}

GoogleOAuthClient is a company’s own Google OAuth client, from a Google Cloud project it controls, that a product signing in with a person’s Google consent signs in as: AdMob’s and AdSense’s for every call, Google Play’s and Google Analytics’ for an admin adding agents’ identities. It maps onto Crewlet’s oauth, and the Google Cloud Integration’s signInClient onto its sign_in_client.

Appears in:

FieldDescriptionDefaultValidation
clientID stringclientID is the OAuth client’s ID,
-.apps.googleusercontent.com. Changing it ends the
company’s sign-in: Google renews one only for the client it was made
as, so a person signs in again. Crewlet’s client_id.
MaxLength: 255
MinLength: 30
Pattern: ^[0-9]+-[a-z0-9]+\.apps\.googleusercontent\.com$
Required: {}
clientSecretRef SecretKeyReferenceclientSecretRef is the Secret key holding the OAuth client’s secret, as
Google shows it beside the client. AdMob, AdSense, Google Play, Google
Analytics and the Google Cloud Integration’s signInClient may sign in as
one client and name the same Secret key; no other field of the company
may reference it: the engine’s dry run refuses one. Crewlet’s
client_secret, a credential position.
Required: {}

GooglePlayIntegration lets agent seats read and manage the company’s Google Play apps through the engine’s tools (reviews and replies, store listings, releases and rollouts, testers, products and subscriptions, orders and refunds, vitals and the monthly reports), each as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person invites in Play Console with the permissions the seat may act with. It maps onto Crewlet’s integrations.google_play, which needs integrations.google_cloud: without the company’s Google Cloud Integration the engine’s dry run refuses it, Invalid on this Integration. Its one credential is the optional OAuth client’s secret, which a Play Console admin signs in as so the engine adds each agent’s identity itself. The engine creates nothing else at Google Play, and Google Play delivers nothing to the engine, so the Integration’s provisioning is External and it has no webhook. An empty block is a setting of its own: every app an agent’s identity is invited to.

Appears in:

FieldDescriptionDefaultValidation
apps string arrayapps are the package names of the apps agents may be given
(com.example.app), each once. Unset is every app an agent’s identity is
invited to. Crewlet’s apps.
MaxItems: 200
items:MaxLength: 150
items:MinLength: 3
items:Pattern: ^[A-Za-z][A-Za-z0-9_]*(\.[A-Za-z][A-Za-z0-9_]*)+$
Optional: {}
developerAccounts string arraydeveloperAccounts are the Google Play developer accounts, each by its
ID (the digits after /developers/ in a Play Console address) and once,
whose users and permissions an Administer agent may ask an
administrator to change, and whose account-wide reports an agent that
reaches every listed app may read. Crewlet’s developer_accounts.
MaxItems: 20
items:MaxLength: 25
items:MinLength: 1
items:Pattern: ^[0-9]\{1,25\}$
Optional: {}
reportsBuckets string arrayreportsBuckets are each developer account’s monthly reports bucket, as
Play Console’s Download reports page copies it without gs://
(pubsite_prod_rev_ and digits), each once. The engine reads installs,
ratings, reviews and financial reports from them as the company’s
reader. Crewlet’s reports_buckets.
MaxItems: 20
items:MaxLength: 42
items:MinLength: 14
items:Pattern: ^pubsite_prod(_rev)?_[0-9]\{1,25\}$
Optional: {}
oauth GoogleOAuthClientoauth is the company’s own Google OAuth client, a Web application in a
Google Cloud project it controls, which a Play Console admin signs in
as on the engine’s dashboard, so the engine adds each agent’s identity
to its apps itself, in the developer account developerAccounts names
that holds each app. The sign-in signs no agent’s call. Unset, the
sign-in is made as the Google Cloud Integration’s signInClient; with
neither, a person invites each identity by hand. The Google Analytics
Integration may name the same client. Crewlet’s oauth.
Optional: {}
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats, in this namespace, an agent’s held
acts (a review reply, a listing change, a release, a price, a refund,
a user or key change) are routed to first. Only an administrator
answers one, at a fresh sign-in; unset asks every administrator.
Crewlet’s approvers, which names a seat by its handle.
MaxItems: 64
Optional: {}

Underlying type: string

GooglePlayLevel is what a seat may do in each of its Google Play apps, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read reads reviews, listings, releases, products, vitals and reports, changing nothing; Operate adds draft releases, halted rollouts, tester groups and draft products made at once, and asking an administrator to approve each review reply, listing change, release, price and refund; Administer adds asking for user, access, key, deletion and other irreversible changes. Raising a seat to Operate or Administer needs a fresh sign-in on the dashboard. The Play Console permissions a person gives the seat’s identity on each app are Google’s own ceiling beside it.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

GooglePlaySeatIntegration is a seat’s access to the company’s Google Play apps. It maps onto Crewlet’s role integrations.google_play and needs the company’s Google Play Integration. The seat signs in as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person invites in Play Console; the engine mints its tokens inside itself at use and holds every call to the seat’s level and apps, so no Seat names a Google Play credential.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may reach Google Play. False turns its
Google growth identity off once no other Google growth product is on
for it. Crewlet’s enabled.
Required: {}
level GooglePlayLevellevel is what the seat may do in each of its apps. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
apps string arrayapps are the package names of the apps the seat may reach
(com.example.app), each within the Google Play Integration’s apps where
it lists them: Crewlet refuses another, which the engine’s dry run
reports as Invalid on the Seat. Required while the seat is on.
Crewlet’s apps.
MaxItems: 200
items:MaxLength: 150
items:MinLength: 3
items:Pattern: ^[A-Za-z][A-Za-z0-9_]*(\.[A-Za-z][A-Za-z0-9_]*)+$
Optional: {}

GrowthSpend is a spending growth integration’s caps, per ad account. It maps onto Crewlet’s spend block of the integration.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
accounts GrowthSpendCap arrayaccounts are the caps of each ad account agents may ask to spend on.
Crewlet’s accounts.
MaxItems: 200
Optional: {}

GrowthSpendCap is one ad account’s two spending caps, each a decimal amount in the account’s own currency. It maps onto one entry of Crewlet’s spend.accounts. An account without both caps refuses every spend call; reads, operate calls and pausing still work. Crewlet refuses a perChange above daily, which the engine’s dry run reports as Invalid on the Integration.

Appears in:

FieldDescriptionDefaultValidation
account stringaccount is the ad account’s ID, as the vendor writes it. Crewlet’s
account.
MaxLength: 64
MinLength: 1
Pattern: ^[0-9A-Za-z_-]+$
Required: {}
currency stringcurrency is the account’s currency as an ISO 4217 code, such as EUR.
It must equal the account’s own currency, which the engine reads
live, or every spend call on the account is refused. Crewlet’s
currency.
MaxLength: 3
MinLength: 3
Pattern: ^[A-Z]\{3\}$
Optional: {}
perChange stringperChange is the most one approved change may add to the account’s
daily capacity, such as 50.00. Crewlet’s per_change.
MaxLength: 19
MinLength: 1
Pattern: ^[0-9]\{1,12\}(\.[0-9]\{1,6\})?$
Optional: {}
daily stringdaily is the ceiling on the account’s daily capacity after any
approved change, such as 200.00. It limits the budgets agents may
set, not what the vendor delivers on one day. Crewlet’s daily.
MaxLength: 19
MinLength: 1
Pattern: ^[0-9]\{1,12\}(\.[0-9]\{1,6\})?$
Optional: {}

Underlying type: string

Harness is which harness a model provider drives: the vendor’s own command-line tool that runs the model, such as Claude Code, Codex or OpenCode. It maps onto the harness of a Crewlet providers.llm entry, providers.llm..harness (ClaudeCode is claude-code, Codex is codex, GeminiCLI is gemini-cli, QwenCode is qwen-code, OpenCode is opencode, CursorAgent is cursor-agent, Copilot is copilot, Grok is grok, MuseCode is muse-code, KimiCode is kimi-code, Hermes is hermes, Pi is pi). Crewlet’s custom, a harness described wholly by profile overrides, is not offered: the overrides name the binary and the arguments the engine’s pod runs.

Validation:

  • Enum: [ClaudeCode Codex GeminiCLI QwenCode OpenCode CursorAgent Copilot Grok MuseCode KimiCode Hermes Pi]

Appears in:

FieldDescription
ClaudeCode
Codex
GeminiCLI
QwenCode
OpenCode
CursorAgent
Copilot
Grok
MuseCode
KimiCode
Hermes
Pi

HarnessAuth is how a company’s model provider signs its harness in. It maps onto the auth of a Crewlet providers.llm entry.

A subscription login is made at a terminal, by crewlet llm login or the harness’s own command, and a pod has no terminal: Subscription signs in with a headless token, such as the CLAUDE_CODE_OAUTH_TOKEN claude setup-token mints, or with a credential bundle crewlet llm export wrote from a login made elsewhere: the harness’s login, which is its credential files, or, for OpenCode, which keeps its logins in a database of its own, the document OpenCode 2’s auth export printed. A bundle is restored only into a provider’s login on the data volume that is empty or that was installed before the bundle’s own login, by the install record each carries; a refresh keeps its login’s record, so the refreshed login a running engine keeps there wins over a bundle of the same login, and only a bundle exported after a newer login replaces it. A token never needs refreshing, which makes it the better of the two wherever the harness mints one. A provider names one of the two: given both, which login the harness acts on would be the harness’s choice between its environment and its own files, which nothing here can see.

APIKey signs in with the one key of apiKeySecretRef, which Crewlet puts in the harness’s key variable. Without it Crewlet would read that variable itself from its secret store and the engine’s environment, which hold credentials that are not this object’s to name, so the key is required with the mode; it is refused under any other, where Crewlet reads none.

Crewlet hands a harness a token or a key only through the variable its profile names, and refuses one for a harness whose profile names none, since it would reach nothing: so LLMProviderSpec holds tokenSecretRef to the harnesses with a token variable and mode APIKey to the harnesses with a key variable.

Env signs the harness in with the provider’s env and nothing else: Crewlet hands it neither its token variable nor its key variable and seeds no login, so a cloud provider or a gateway is the harness’s one sign-in rather than a second one the harness ranks against a token or a key by rules of its own. It takes a harness whose Crewlet profile says what in env signs it in: ClaudeCode and Copilot, whose profiles list the names that do (sign_in_env: ANTHROPIC_AUTH_TOKEN and the platform switches CLAUDE_CODE_USE_BEDROCK, _VERTEX, _FOUNDRY, _ANTHROPIC_AWS, _ANTHROPIC_GOOGLE_CLOUD, _MANTLE and _GATEWAY for ClaudeCode, GH_TOKEN and GITHUB_TOKEN for Copilot), one of which env must set, and Hermes, Pi and OpenCode, whose env must hold their model provider’s key under a credential’s name (below). Those sign_in_env names are refused in env under every other mode, which hands the harness a credential of its own beside them. tokenSecretRef and credentialBundleSecretRef are refused with it, as no token or login reaches the harness. The rules are LLMProviderSpec’s, which sees the harness and env beside auth.

Hermes, Pi and OpenCode may sign in to a Subscription with neither: each fronts many model providers and reads each provider’s key from that provider’s own variable, so Crewlet’s profile for it names no key variable and marks it as signing in through its environment (env_sign_in), and Crewlet documents the provider’s key in the entry’s env as its metered sign-in, and hands that env to the harness untouched. Crewlet counts an entry of env as a sign-in only when its name says it holds a credential: one of its parts between underscores is, in any case, KEY, KEYS, APIKEY, ACCESSKEY, SECRETKEY, TOKEN, SECRET, PASSWORD, PASSWD, CREDENTIAL, CREDENTIALS, AUTH, OAUTH or PAT (harnessprofile.IsCredentialName). So OPENROUTER_API_KEY signs such a harness in and HTTPS_PROXY or HERMES_MAX_TOKENS does not, and one whose env holds no such name is signed in to nothing, and refused. Every other harness keeps to a token, a bundle or a key: one with a key variable takes its key through mode APIKey, and Crewlet refuses that variable in env, which auth owns. The rule is LLMProviderSpec’s, which sees the harness and env beside auth.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
mode HarnessAuthModemode is how the harness signs in. Unset is Subscription. Crewlet’s
mode.
Enum: [Subscription APIKey Env]
Optional: {}
tokenSecretRef SecretKeyReferencetokenSecretRef is the Secret key holding a long-lived subscription
token the harness mints for headless use. Crewlet’s token, a credential
position.
Optional: {}
apiKeySecretRef SecretKeyReferenceapiKeySecretRef is the Secret key holding the metered API key auth
mode APIKey hands the harness, in the key variable Crewlet’s profile for
it names (ClaudeCode’s ANTHROPIC_API_KEY, Codex’s CODEX_API_KEY).
One key: a harness holds one sign-in and rotates nothing, so a second key
is a provider of its own, later in a seat’s chain. Crewlet’s
api_key, a credential position: the value is pushed into the
engine’s secret store and the document refers to it by name only.
Optional: {}
credentialBundleSecretRef SecretKeyReferencecredentialBundleSecretRef is the Secret key holding a credential
bundle crewlet llm export wrote. A bundle holding a login OpenCode
1.x made (its auth.json) is refused when the engine restores it, and
the provider runs signed out: export it again from OpenCode 2.
Crewlet’s credential_bundle, a credential position.
Optional: {}

Underlying type: string

HarnessAuthMode is how a model provider’s harness authenticates. It maps onto the auth.mode of a Crewlet providers.llm entry (Subscription is subscription, APIKey is api-key, Env is env).

Crewlet’s inherit-env, which hands the harness whichever token or key the engine’s own environment holds, is not offered: a credential in the engine’s environment is outside the encrypted store, readable by every process the engine runs, and resolvable by a ${NAME} written in many fields of the company document, so it would be the one credential the API takes by another route than a Secret reference. Subscription, APIKey and Env cover what it is for.

Validation:

  • Enum: [Subscription APIKey Env]

Appears in:

FieldDescription
SubscriptionHarnessAuthSubscription signs the harness in to a subscription with
tokenSecretRef or credentialBundleSecretRef, or signs Hermes, Pi or
OpenCode in with its model provider’s key in the provider’s env.
APIKeyHarnessAuthAPIKey gives the harness the key of apiKeySecretRef, in the
key variable Crewlet’s profile for it names, billing the metered
account. CursorAgent’s key is a Cursor account’s API key
(CURSOR_API_KEY), not a model provider’s.
EnvHarnessAuthEnv signs the harness in with the provider’s env alone: a
cloud provider’s switch and its credentials (ClaudeCode’s
CLAUDE_CODE_USE_BEDROCK with the AWS variables), a gateway’s address
and the token it takes (ANTHROPIC_BASE_URL with ANTHROPIC_AUTH_TOKEN),
Copilot’s GitHub token (GH_TOKEN or GITHUB_TOKEN), Vertex AI’s switch
for GeminiCLI (GOOGLE_GENAI_USE_VERTEXAI with its project and key), or,
for Hermes, Pi and OpenCode, their model provider’s key. Crewlet
hands the harness neither its token variable nor its key variable, and
seeds no login, so nothing competes with what env signs in with.

Underlying type: string

HarnessWebTools is whether a model provider’s harness keeps its own web tools (its fetch and its search). It maps onto the web_tools of a Crewlet providers.llm entry’s overrides (Allowed is allowed, Denied is denied).

A seat keeps its harness’s web tools by default: it must not have less reach than the same harness at a terminal. Ask Crewlet does not read the stance: Crewlet runs the provider spec.assistant.model names with its web tools off whatever this says, and searches through a run of it with the harness’s web search alone; the seats on it keep their own. Crewlet turns them off only for a harness whose profile carries a measured way to (its web_denial): ClaudeCode, Codex, OpenCode, Copilot, KimiCode and Pi.

Validation:

  • Enum: [Allowed Denied]

Appears in:

FieldDescription
AllowedHarnessWebToolsAllowed keeps the harness’s web tools, every seat’s
default.
DeniedHarnessWebToolsDenied runs the harness with its web tools off.

InboxSettings is the company’s policy over a person’s inbox: the notices the engine writes to each person its work concerns. It maps onto Crewlet’s inbox block.

It is the company’s rather than its tracker’s, and applies whatever tracker the company runs: a person’s inbox holds the notices of every part of the engine that writes them, Worklet’s among them, and one horizon ages them all.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
retentionSeconds integerretentionSeconds is how long a person’s inbox keeps a notice; the
history the notice points at is kept regardless. Crewlet keeps the
horizon in whole days, so it is a whole number of days in seconds,
from 30 days (2592000) to 3650 days (315360000), such as 7776000 for
90 days. Unset takes Crewlet’s default of 365 days. Crewlet’s
inbox.retention_days, which is this divided by 86400.
Maximum: 3.1536e+08
Minimum: 2.592e+06
Optional: {}

IngressExposure puts a company’s routes on an Ingress.

Appears in:

FieldDescriptionDefaultValidation
className stringclassName is the IngressClass. Unset uses the cluster’s default class.MaxLength: 253
MinLength: 1
Optional: {}
annotations object (keys:string, values:string)annotations are added to the Ingress, for the controller that serves it
or a certificate controller.
MaxProperties: 32
Optional: {}
tls IngressTLStls terminates TLS on the Ingress. Unset serves plain HTTP, which is
right only behind something else that terminates TLS: vendors deliver
webhooks over HTTPS only.
Optional: {}
controllerNamespaces string arraycontrollerNamespaces are the namespaces the Ingress controller’s pods
run in. Under networkPolicy Isolated they are admitted to the one port
of the engine the Ingress reaches (the public listener for the
webhooks’ Ingress, the API port for the API’s, the artifact listener
for the artifacts’), and they are required
there: an Ingress does not say which pods
serve it, and without them the policy would refuse every request the
Ingress forwards.
MaxItems: 8
MinItems: 1
items:MaxLength: 63
items:MinLength: 1
items:Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}

IngressTLS terminates TLS on a company’s Ingress.

Appears in:

FieldDescriptionDefaultValidation
secretName stringsecretName is the TLS Secret, in the Company’s namespace, the Ingress
presents. It is a template like the hostname: {{namespace}}, {{name}}
and {{uid}} are replaced. A certificate controller that issues
certificates from Ingress annotations creates it; set those annotations
under ingress.annotations.
MaxLength: 253
MinLength: 1
Required: {}

Integration connects a company to a vendor (Slack, GitHub, GitLab, Mattermost, Jira, Confluence, Datadog, Cloudflare, Expo, DigitalOcean, Scaleway, AWS, Google Cloud, Google Analytics, Google Ads, Search Console, Google Play, AdMob, AdSense, App Store Connect, Apple Ads, Meta Ads or an Atlassian organization): the company-wide settings, the credentials that verify the vendor’s webhooks, and, where the engine creates the seats’ accounts, signs in or makes the calls itself, the credential it does so with. Credentials that belong to one seat, such as its own Slack app or its GitLab token, are on the Seat.

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringIntegration
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec IntegrationSpecspec is the integration’s desired state.Required: {}
status IntegrationStatusstatus is the integration’s observed state.MinProperties: 1
Optional: {}

Underlying type: string

IntegrationProvisioning is who creates the seats’ accounts at a vendor, and so where their credentials come from.

Validation:

  • Enum: [External Engine]

Appears in:

FieldDescription
ExternalIntegrationProvisioningExternal leaves the seats’ accounts to someone
outside the engine (a person, a platform): each seat’s credentials are
Secrets its Seat references, and the engine is given no administrator
credential, so it creates, changes and removes nothing at the vendor.
EngineIntegrationProvisioningEngine has the engine create each agent seat’s
account with an administrator credential the Integration references,
mint the account’s credential into the engine’s secret store, register
the company’s webhooks, and heal all of it on a schedule. Seats name
the minted credentials as provisioned values.

IntegrationSpec connects a company to one vendor. Exactly one vendor member is set; the Integration’s kind of vendor cannot change, and a company has at most one Integration per vendor (a second is reported as a conflict).

provisioning says who creates the seats’ accounts at the vendor. Under External (the default) someone else does, and every per-seat credential comes from a Secret its Seat references; the Integration then holds no administrator credential. Under Engine the engine creates them, from the administrator credential the vendor member references, and seats name the credentials it mints as provisioned values. The engine can create accounts at GitLab, Mattermost, Datadog, Cloudflare, Scaleway, Google Cloud and Atlassian, holds each Expo seat’s robot token and each DigitalOcean seat’s personal access token, which a person pastes, and makes each AWS seat’s IAM role, whose session it issues at use; Datadog, Cloudflare, Expo, DigitalOcean, Scaleway, AWS, Google Cloud and Atlassian are always provisioned by the engine, and Slack, GitHub, Jira, Confluence, Google Analytics, Google Ads, Search Console, Google Play, AdMob and AdSense never are (the engine mints no credential there; a seat of a Google growth product signs in as the identity the Google Cloud Integration makes it, and every AdMob or AdSense call goes as the grant a person signs in with). App Store Connect, Apple Ads and Meta Ads are neither: the engine makes every call itself and mints no seat credential there (an App Store Connect agent signs with its own key, which a person hands in on the engine’s dashboard).

Appears in:

FieldDescriptionDefaultValidation
companyRef CompanyReferencecompanyRef names the Company this integration belongs to. Immutable.Required: {}
provisioning IntegrationProvisioningprovisioning is who creates the seats’ accounts at the vendor. Unset
is External.
Enum: [External Engine]
Optional: {}
slack SlackIntegrationslack connects Slack.Optional: {}
github GitHubIntegrationgithub connects GitHub.Optional: {}
gitlab GitLabIntegrationgitlab connects GitLab.Optional: {}
mattermost MattermostIntegrationmattermost connects Mattermost.Optional: {}
jira JiraIntegrationjira connects Jira.Optional: {}
confluence ConfluenceIntegrationconfluence connects Confluence.Optional: {}
datadog DatadogIntegrationdatadog connects Datadog.Optional: {}
cloudflare CloudflareIntegrationcloudflare connects a Cloudflare account.Optional: {}
expo ExpoIntegrationexpo connects an Expo account.Optional: {}
digitalocean DigitalOceanIntegrationdigitalocean connects a DigitalOcean team.Optional: {}
scaleway ScalewayIntegrationscaleway connects a Scaleway Organization.Optional: {}
aws AWSIntegrationaws connects an AWS account.Optional: {}
googleCloud GoogleCloudIntegrationgoogleCloud connects a company’s Google Cloud.Optional: {}
googleAnalytics GoogleAnalyticsIntegrationgoogleAnalytics connects a company’s Google Analytics 4 properties.
An empty block, {}, connects every property an agent’s identity is
added to.
Optional: {}
admob AdMobIntegrationadmob connects a company’s AdMob accounts. An empty block, {},
connects every account, signed in as the Google Cloud Integration’s
signInClient.
Optional: {}
adsense AdSenseIntegrationadsense connects a company’s AdSense accounts. An empty block, {},
connects every account, signed in as the Google Cloud Integration’s
signInClient.
Optional: {}
appStoreConnect AppStoreConnectIntegrationappStoreConnect connects a company’s App Store Connect teams.Optional: {}
appleAds AppleAdsIntegrationappleAds connects a company’s Apple Ads organizations.Optional: {}
metaAds MetaAdsIntegrationmetaAds connects a company’s Meta ad accounts.Optional: {}
googleAds GoogleAdsIntegrationgoogleAds connects a company’s Google Ads accounts. An empty block,
{}, connects every account an agent’s identity is added to directly.
Optional: {}
searchConsole SearchConsoleIntegrationsearchConsole connects a company’s Google Search Console properties.
An empty block, {}, connects every property an agent’s identity is
added to.
Optional: {}
googlePlay GooglePlayIntegrationgooglePlay connects a company’s Google Play apps. An empty block, {},
connects every app an agent’s identity is invited to.
Optional: {}
atlassian AtlassianIntegrationatlassian connects an Atlassian Cloud organization.Optional: {}

IntegrationStatus is what the operator observed about an Integration.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions are Accepted (the Company exists and has no other
Integration for the vendor), ResolvedRefs (every Secret key exists),
Applied (the integration is in the revision the engine runs) and
Healthy (the engine’s own check of the vendor passes).
MaxItems: 8
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}
webhookURL stringwebhookURL is the company-wide URL the vendor delivers webhooks to,
when the company is exposed and the vendor has one:
/webhooks/ for GitHub, GitLab, Jira,
Confluence (a Data Center instance’s; Confluence Cloud delivers to
/, a hook the engine registers per event) and
Datadog. Slack, Mattermost, Cloudflare, Expo, DigitalOcean, Scaleway, AWS,
Google Cloud, Google Analytics, Google Ads, Search Console, Google Play,
AdMob, AdSense, App Store Connect, Apple Ads, Meta Ads and Atlassian have
none; Slack’s and
GitHub’s per-seat URLs are in each Seat’s status.
MaxLength: 2048
MinLength: 1
Optional: {}

IssueReportsSettings is the company’s choice to report the engine’s own defects to the project, as anonymous GitHub issues filed by a relay. Each is a typed record that holds nothing of the company’s, and only a released or clean module build of the engine sends one. Where the reports go is the engine’s constant, and nothing here names it.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled turns the reports on. Unset is off. Crewlet’s
diagnostics.issue_reports.enabled.
Optional: {}

JiraIntegration turns Jira on for a company: webhooks from a Jira site wake the seats they concern, and the company may run Jira as its tracker (the Company’s spec.tracker.backend Jira). It maps onto Crewlet’s integrations.jira. Each seat’s Jira identity is its own token, a credential of the MCPServer named atlassian (or jira) in its Seat’s spec.mcp.

Appears in:

FieldDescriptionDefaultValidation
url stringurl is a Data Center instance’s or a Cloud site’s base URL. Unset
with cloudID unset, the company’s Atlassian Integration discovers the
site. Crewlet’s url.
MaxLength: 2048
MinLength: 1
Optional: {}
cloudID stringcloudID is an Atlassian Cloud site’s id; requests go through the API
gateway of the Cloud siteURL is on: Atlassian Government Cloud’s,
api.atlassian-us-gov-mod.com, for a site under
atlassian-us-gov-mod.net, and api.atlassian.com otherwise. Crewlet’s
cloud_id.
MaxLength: 64
MinLength: 1
Pattern: ^[A-Za-z0-9-]+$
Optional: {}
siteURL stringsiteURL is the site’s address as a browser opens it, for the links
the engine hands people; needed with cloudID, whose gateway address
opens nothing in a browser, and which is read through the gateway of
this site’s Cloud. Unset is url. Crewlet’s site_url.
MaxLength: 2048
MinLength: 1
Optional: {}
email stringemail is the account’s address, for Jira Cloud’s basic
authentication. Unset sends the token as a bearer token, as a service
account and a Data Center personal access token want. Crewlet’s
email.
MaxLength: 254
MinLength: 3
Pattern: ^[^@\s]+@[^@\s]+$
Optional: {}
tokenSecretRef SecretKeyReferencetokenSecretRef is the Secret key holding the API token (Cloud) or
personal access token (Data Center) of an administrator account. The
engine reads an issue’s watchers with it, which no webhook carries,
and registers the company’s webhook. Crewlet’s token, a credential
position.
Required: {}
webhookSecretRef SecretKeyReferencewebhookSecretRef is the Secret key holding the secret webhook
deliveries are signed with. Required for a Data Center instance, whose
route answers none without it; on Cloud, webhooks the engine
registers are signed with it, and the Forge relay needs none.
Crewlet’s webhook_secret, a credential position.
Optional: {}
webhookName stringwebhookName is the name of the webhook the engine registers, which is
how it tells its own from others on the site: two deployments
watching one site need two names. Unset is crewlet. Crewlet’s
webhook_name.
MaxLength: 255
MinLength: 1
Optional: {}

JiraSeatIntegration is a seat’s access on Jira. It maps onto Crewlet’s role integrations.jira and needs the company’s Jira Integration. With the company’s Atlassian Integration the engine creates the seat’s account, grants it Jira and gives it the project role in the projects; without one (a Data Center instance) the account is made outside the engine, and the engine reports the seat’s access as managed outside Crewlet.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat is on Jira. False takes the account out of
its project roles and narrows its token, and keeps the account and its
Jira product access. Crewlet’s enabled.
Required: {}
projectRole stringprojectRole is the project role the seat holds in each of projects,
by its id on the site (GET /rest/api/3/role), such as 10101. What a
role may do is each project’s permission scheme. The engine checks it
against the site’s roles on every pass, and reports one that no
longer exists rather than falling back to another. Required while
the seat is on in projects; with neither, the seat holds Jira product
access only. Crewlet’s project_role.
MaxLength: 32
MinLength: 1
Pattern: ^[0-9]+$
Optional: {}
projects string arrayprojects are the projects, by key, the seat holds projectRole in.
Each must be a project the company’s document names, as a Unit’s or
a Seat’s spec.project, so a seat cannot widen the company’s reach:
Crewlet refuses another, which the engine’s dry run reports as
Invalid on the Seat. Crewlet’s projects.
MaxItems: 128
items:MaxLength: 255
items:MinLength: 1
items:Pattern: ^[A-Z][A-Z0-9_]*$
Optional: {}

Underlying type: string

KnowledgeBackend is which knowledge base a company runs. It maps onto Crewlet’s knowledge.backend (Doclet is doclet, Confluence is confluence, None is none).

Validation:

  • Enum: [Doclet Confluence None]

Appears in:

FieldDescription
DocletKnowledgeDoclet is Doclet, the engine’s own knowledge base.
ConfluenceKnowledgeConfluence is Confluence, connected by the company’s
Confluence Integration.
NoneKnowledgeNone is a company with no knowledge base.

KnowledgeSettings is which knowledge base a company runs and how it is searched. It maps onto Crewlet’s knowledge block.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
backend KnowledgeBackendbackend is which knowledge base the company runs.DocletEnum: [Doclet Confluence None]
Optional: {}
scope string arrayscope narrows every knowledge search to these containers. Empty
searches the whole company. Each is a container key, which Crewlet
requires to be an upper-case letter followed by 1 to 9 upper-case
letters or digits, such as PLAT. Crewlet’s scope.
MaxItems: 64
items:MaxLength: 10
items:MinLength: 2
items:Pattern: ^[A-Z][A-Z0-9]\{1,9\}$
Optional: {}
skillsContainer stringskillsContainer is the container holding tool-skill pages, a container
key (see scope). Unset takes Crewlet’s default container; an empty
string turns tool skills off. Crewlet’s skills_container.
MaxLength: 10
Optional: {}
rootSpace stringrootSpace is the container holding the company’s own pages, such as
the root onboarding page, a container key (see scope). Unset takes
Crewlet’s default. Crewlet’s root_space.
MaxLength: 10
MinLength: 2
Pattern: ^[A-Z][A-Z0-9]\{1,9\}$
Optional: {}
vectors booleanvectors fuses semantic recall into knowledge and work search; false
also stops embedding the corpus. Unset is on exactly when the company
has an embeddings provider; true requires one (spec.embeddings).
Crewlet’s vectors.
Optional: {}

LLMFleet is one fleet of the Company’s model providers. It maps onto one entry of Crewlet’s providers.llm_fleets.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the fleet’s key, which a reference of kind LLMFleet names. It
never changes: rename a fleet with displayName. The key under
Crewlet’s providers.llm_fleets.
MaxLength: 63
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Required: {}
displayName stringdisplayName is what a person reads; unset, the name. Crewlet’s name.MaxLength: 60
MinLength: 1
Optional: {}
strategy LLMFleetStrategystrategy is how new work is spread across the members; unset,
Balanced. Crewlet’s strategy.
Enum: [Balanced Sequential]
Optional: {}
members LLMProviderReference arraymembers are the providers the fleet runs on, of one model class on one
harness, which Crewlet’s dry run holds them to; their order is the
Sequential order. Crewlet’s members.
MaxItems: 32
Optional: {}
thresholdPoints integerthresholdPoints is how many points of usage above the least used
member a seat’s work may stay on the member it last ran on, for its
cache; unset, 5. Crewlet’s threshold_points.
Maximum: 50
Minimum: 1
Optional: {}

Underlying type: string

LLMFleetStrategy is how a fleet spreads new work across its members.

Validation:

  • Enum: [Balanced Sequential]

Appears in:

FieldDescription
BalancedLLMFleetBalanced keeps every member at a similar share of its limits,
plans before keys.
SequentialLLMFleetSequential fills the members in list order, moving to the next
as one nears its limit.

LLMProvider is a model a company’s seats can run on: a harness the engine drives, one entry of Crewlet’s providers.llm, keyed by its name. The name default is refused: Crewlet runs a seat that names no chain on the provider keyed default when there is one, whatever the Company’s spec.llm.order says.

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringLLMProvider
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec LLMProviderSpecspec is the provider’s desired state.Required: {}
status LLMProviderStatusstatus is the provider’s observed state.MinProperties: 1
Optional: {}

Underlying type: string

LLMProviderKind is the kind of model provider a reference names.

Validation:

  • Enum: [LLMProvider PlatformLLMProvider LLMFleet]

Appears in:

FieldDescription
LLMProviderLLMProviderKindLLMProvider is an LLMProvider in the referring object’s
namespace.
PlatformLLMProviderLLMProviderKindPlatform is an entry of the Company’s EngineClass
spec.platformLLMProviders; the Company must set
spec.llm.usePlatformProviders.
LLMFleetLLMProviderKindFleet is an entry of the Company’s spec.llm.fleets, or
default-fleet, which every company has. It stands alone: a chain naming
one names nothing else.

LLMProviderReference names a model provider: an LLMProvider in the referring object’s namespace, a provider the EngineClass offers, or a fleet of the Company’s, rendered fleet:.

Appears in:

FieldDescriptionDefaultValidation
kind LLMProviderKindkind is the kind of provider named.LLMProviderEnum: [LLMProvider PlatformLLMProvider LLMFleet]
Optional: {}
name stringname is the LLMProvider’s metadata.name, the platform provider’s
name, or the fleet’s name.
MaxLength: 253
MinLength: 1
Required: {}

LLMProviderSettings is what a company’s model provider and a platform’s share: the harness, the model it runs, and the bounds on its calls. LLMProvider and the EngineClass’s platform providers embed it, so a platform-provided model is described exactly like a tenant’s own. Each field maps onto the same-named field of a Crewlet providers.llm entry.

Every model Crewlet runs is a harness it drives: Claude Code for Anthropic’s models, on a subscription or an API key, Codex for OpenAI’s, OpenCode for open models on any provider. The harness is a binary in the engine’s image, which the official image does not ship: a class running a company’s seats names an image derived from the engine’s with the harness installed (docs/guides/harnesses.md). For OpenCode that is OpenCode 2.3.2, the @opencode/cli package: Crewlet refuses an older release, continues no session on a newer one, and every command it runs carries —standalone, which OpenCode 1.x (npm’s opencode-ai) rejects.

The cross-field rules over these fields are declared on each type that embeds this one (LLMProviderSpec and PlatformLLMProvider), because controller-gen does not carry a validation declared on an embedded type into the schema of the type that inlines it. The API tests exercise both copies.

Appears in:

FieldDescriptionDefaultValidation
harness Harnessharness is which harness to drive: the vendor’s own command-line tool
that runs the model. The model is written as this harness reads it, and a seat’s executor
run on the provider is handed it unchanged: OpenCode reads
<provider>/<model>, such as anthropic/claude-sonnet-5. Only
ClaudeCode, Codex, GeminiCLI, QwenCode, OpenCode, CursorAgent, Copilot,
Grok, MuseCode, KimiCode, Hermes and Pi run a seat’s executor; every harness serves a seat’s
other phases. Crewlet’s harness
(providers.llm..harness).
Enum: [ClaudeCode Codex GeminiCLI QwenCode OpenCode CursorAgent Copilot Grok MuseCode KimiCode Hermes Pi]
Required: {}
model stringmodel is the model the harness runs, in the harness’s own grammar: an alias
or an id for ClaudeCode (sonnet, claude-opus-5-5), an OpenAI id
for Codex, <provider>/<model> for OpenCode. Crewlet’s model.
Crewlet trims it of white space and refuses a provider with nothing
left, as naming no model.
MaxLength: 256
MinLength: 1
Required: {}
timeoutSeconds integertimeoutSeconds bounds one stretch of the harness’s model work, wall clock,
with no call of a seat’s tool in flight: from the harness’s launch, or the
answer to its last tool call, to its next tool call or its end, the
model’s answer and the harness’s own retries in it. It is not a bound on
a run of the harness, which asks the model many times and calls the
seat’s tools between: a tool call stops the clock however long it
takes (a delegation, a slow tool server), and the next stretch starts
afresh. Unset takes Crewlet’s default of 600, the ceiling Anthropic
documents for one answer of a current Claude model at its full
output. A timeout is retryable, so a seat’s chain moves on to its
next provider. It bounds the phases the harness runs in the engine’s
process (the reviewer, delegated workers, the summariser, the judge);
a seat’s executor run on the provider, its harness’s own run in a box, is
not on this clock: its rounds are capped only where the Company’s
spec.sandbox.defaultMaxTurns or the Seat’s spec.sandbox.maxTurns sets a
cap.
Crewlet’s timeout_seconds.
Minimum: 1
Optional: {}
maxConcurrent integermaxConcurrent is how many of the provider’s harness processes run at once
in each engine pod; each takes 200 to 450 MB of the pod’s memory,
OpenCode’s at the top of that range (docs/guides/harnesses.md). One
process lives for a whole run of the harness, many model requests and
tool calls long, and holds its place for all of it, so this is also
how many seats’ runs the provider has going at once in a pod: a run
past it waits for a place. A model call made on the same provider
from inside one of a run’s tool calls (a delegated worker’s) borrows
the run’s place rather than wait for another, which the runs holding
every place could leave it waiting for forever. Unset takes
Crewlet’s default of 4. A seat’s executor run takes none: it is a
process of its own box, and a seat runs one at a time. Crewlet’s
max_concurrent.
Maximum: 64
Minimum: 1
Optional: {}
webTools HarnessWebToolswebTools is whether the harness keeps its own web tools in the seats’
runs. Unset is Allowed, every seat’s default. Ask Crewlet’s runs of the
provider (spec.assistant.model) do not read it: a turn has the web tools
off and a search has the harness’s web search alone.
Denied is refused for a harness Crewlet has no way to turn the web off
for: it takes ClaudeCode, Codex, OpenCode, Copilot, KimiCode or Pi. Crewlet’s
overrides.web_tools.
Enum: [Allowed Denied]
Optional: {}
effort stringeffort is how hard the model reasons, in the harness’s own levels; unset
runs the harness’s default. Crewlet’s effort.
MaxLength: 16
MinLength: 1
Optional: {}

LLMProviderSpec is one model provider of a company: a harness the engine drives. It renders to one entry of Crewlet’s providers.llm, keyed by the LLMProvider’s metadata.name; Seats and the Company’s model order refer to it by that name.

Its login, and the per-seat homes the harness keeps, are on the data volume, so a restart or a new pod keeps them.

Its rules hold every credential to a variable Crewlet’s profile for the harness reads, as Crewlet’s own admission does (providers.llm.*): the engine refuses a write that names a credential its harness would never be given, so the API refuses it on the object instead. The lists of harnesses the rules name and the variables they quote are those whose profiles set token_env, api_key_env, env_sign_in or sign_in_env in the engine the operator is tested against, Crewlet’s main; a test holds them to that engine’s own verdict. The rules also keep env off the variables Crewlet sets on every call to keep each seat’s harness inside its own home and its call’s working directory (HOME, the XDG directories, TMPDIR, and the configuration directory or switch each harness’s profile names in config_env, work_config_env and isolation_env): env is layered over them, so a value there would replace that isolation for every seat on the provider, and Crewlet refuses the document. A test holds that list to the engine’s refusals too.

A seat’s executor, which does the seat’s work, is its harness’s own agentic run: the harness’s loop with its own shell and editor, fully permissioned, as a headless run has nobody to answer a permission prompt, calling the seat’s tools as one MCP server through the engine’s tool bridge. Crewlet runs it on the first member of the seat’s executor chain that drives ClaudeCode, Codex, GeminiCLI, QwenCode, OpenCode, CursorAgent, Copilot, Grok, MuseCode, KimiCode, Hermes or Pi, the harnesses it has an in-box runner for, and is not sitting out its spent plan on the node, in a box of its own on the engine pod that holds the seat. Every other harness serves a seat’s other phases alone (the reviewer, delegated workers, the summariser and the judge), in the engine’s pod. Crewlet hands an executor run its provider’s model exactly as the provider’s runs in the engine’s pod pass it, so one model serves every phase. The box is seeded with the provider’s login, its credential files or the document OpenCode 2’s export printed, and writes a refreshed login back. Under auth mode APIKey or Env no login is seeded: the key, or env, is the sign-in.

Appears in:

FieldDescriptionDefaultValidation
companyRef CompanyReferencecompanyRef names the Company this provider belongs to. Immutable.Required: {}
harness Harnessharness is which harness to drive: the vendor’s own command-line tool
that runs the model. The model is written as this harness reads it, and a seat’s executor
run on the provider is handed it unchanged: OpenCode reads
<provider>/<model>, such as anthropic/claude-sonnet-5. Only
ClaudeCode, Codex, GeminiCLI, QwenCode, OpenCode, CursorAgent, Copilot,
Grok, MuseCode, KimiCode, Hermes and Pi run a seat’s executor; every harness serves a seat’s
other phases. Crewlet’s harness
(providers.llm..harness).
Enum: [ClaudeCode Codex GeminiCLI QwenCode OpenCode CursorAgent Copilot Grok MuseCode KimiCode Hermes Pi]
Required: {}
model stringmodel is the model the harness runs, in the harness’s own grammar: an alias
or an id for ClaudeCode (sonnet, claude-opus-5-5), an OpenAI id
for Codex, <provider>/<model> for OpenCode. Crewlet’s model.
Crewlet trims it of white space and refuses a provider with nothing
left, as naming no model.
MaxLength: 256
MinLength: 1
Required: {}
timeoutSeconds integertimeoutSeconds bounds one stretch of the harness’s model work, wall clock,
with no call of a seat’s tool in flight: from the harness’s launch, or the
answer to its last tool call, to its next tool call or its end, the
model’s answer and the harness’s own retries in it. It is not a bound on
a run of the harness, which asks the model many times and calls the
seat’s tools between: a tool call stops the clock however long it
takes (a delegation, a slow tool server), and the next stretch starts
afresh. Unset takes Crewlet’s default of 600, the ceiling Anthropic
documents for one answer of a current Claude model at its full
output. A timeout is retryable, so a seat’s chain moves on to its
next provider. It bounds the phases the harness runs in the engine’s
process (the reviewer, delegated workers, the summariser, the judge);
a seat’s executor run on the provider, its harness’s own run in a box, is
not on this clock: its rounds are capped only where the Company’s
spec.sandbox.defaultMaxTurns or the Seat’s spec.sandbox.maxTurns sets a
cap.
Crewlet’s timeout_seconds.
Minimum: 1
Optional: {}
maxConcurrent integermaxConcurrent is how many of the provider’s harness processes run at once
in each engine pod; each takes 200 to 450 MB of the pod’s memory,
OpenCode’s at the top of that range (docs/guides/harnesses.md). One
process lives for a whole run of the harness, many model requests and
tool calls long, and holds its place for all of it, so this is also
how many seats’ runs the provider has going at once in a pod: a run
past it waits for a place. A model call made on the same provider
from inside one of a run’s tool calls (a delegated worker’s) borrows
the run’s place rather than wait for another, which the runs holding
every place could leave it waiting for forever. Unset takes
Crewlet’s default of 4. A seat’s executor run takes none: it is a
process of its own box, and a seat runs one at a time. Crewlet’s
max_concurrent.
Maximum: 64
Minimum: 1
Optional: {}
webTools HarnessWebToolswebTools is whether the harness keeps its own web tools in the seats’
runs. Unset is Allowed, every seat’s default. Ask Crewlet’s runs of the
provider (spec.assistant.model) do not read it: a turn has the web tools
off and a search has the harness’s web search alone.
Denied is refused for a harness Crewlet has no way to turn the web off
for: it takes ClaudeCode, Codex, OpenCode, Copilot, KimiCode or Pi. Crewlet’s
overrides.web_tools.
Enum: [Allowed Denied]
Optional: {}
effort stringeffort is how hard the model reasons, in the harness’s own levels; unset
runs the harness’s default. Crewlet’s effort.
MaxLength: 16
MinLength: 1
Optional: {}
auth HarnessAuthauth is how the harness signs in. Crewlet’s auth.MinProperties: 1
Required: {}
env SecretEnvVar arrayenv is extra environment of the harness, in every phase a seat runs on the
provider, its executor run included. In the engine’s pod the harness does
not get the engine’s environment: it gets the part Crewlet’s
allowlist names, such as PATH and the TLS and proxy variables, and the
variables the harness’s Crewlet profile passes through, such as
GeminiCLI’s GOOGLE_CLOUD_PROJECT, with a HOME, a TMPDIR and XDG
directories of its seat’s own rather than the engine’s.
So a variable the harness needs beyond that is given here, such as the
address of a gateway a harness reads from its environment (ClaudeCode’s
ANTHROPIC_BASE_URL). It is how Hermes, Pi and OpenCode sign in under
auth mode Subscription or Env with no login of their own: their model
provider’s key, under a name Crewlet reads as a credential, such as
OPENROUTER_API_KEY. Under auth mode Env it is the whole sign-in of
ClaudeCode too: a gateway’s ANTHROPIC_AUTH_TOKEN, or a cloud
provider’s or a gateway’s switch (CLAUDE_CODE_USE_BEDROCK, _VERTEX,
_FOUNDRY, _ANTHROPIC_AWS, _ANTHROPIC_GOOGLE_CLOUD, _MANTLE, _GATEWAY)
with that provider’s credentials, of GeminiCLI
on Vertex AI (GOOGLE_GENAI_USE_VERTEXAI, with its project and key), and
of Copilot: a GitHub token in GH_TOKEN or GITHUB_TOKEN. Those are names
it may set under no other mode, which hands the harness a credential of
its own beside them. It may not set the harness’s own token or key
variable, which auth owns, nor a variable Crewlet sets to keep the harness
inside its seat’s home and its call’s working directory: HOME, the XDG
directories, TMPDIR, and the harness’s own configuration directory or
switch (docs/guides/harnesses.md), nor TZ, as Crewlet hands every harness
the engine’s own zone and reads its limit resets in it. Under auth mode
Subscription it may
not set a variable Crewlet sets there to sign the harness in with its
seat’s login either: GeminiCLI’s GOOGLE_GENAI_USE_GCA.
A seat’s executor run on the provider gets all of env, beneath the
Seat’s own spec.sandbox.env, which wins a name: a gateway’s address
and the bearer token it takes, a cloud switch such as
CLAUDE_CODE_USE_BEDROCK and its region, a proxy, so the run reaches
its model as the provider’s other phases do. A Seat whose spec.sandbox.env signs ClaudeCode or Copilot in itself
keeps every sign-in of the provider’s out of its runs, and the rest of
env in them.
A variable the harness reads as where its calls go (its profile’s
identity_env, and its sign_in_env switches) names the provider’s route:
an address, a host:port, a plain name or a file’s path, none of it
shaped like a key, or Crewlet refuses the provider, naming the variable.
A seat’s carried session continues only under the provider and route it
ran under, unless its harness resumes on its launch’s route (Crewlet’s
”A relaunch continues the turn’s session”). Crewlet’s env, a
credential position.
MaxItems: 32
Optional: {}
loginName stringloginName names the login, and the per-seat homes, the provider
keeps on the data volume. Providers of the company with the same
loginName that drive the same harness share one login, which is how
several models run off one subscription; each harness keeps its own
beside the others’ (Crewlet’s <state_dir>/), so one of another
harness shares the directory and nothing in it. Unset is the provider’s
own metadata.name. Crewlet’s state_dir, as
/var/lib/crewlet/llm-harness/.
MaxLength: 63
MinLength: 1
Pattern: ^[a-z0-9][a-z0-9-]*$
Optional: {}

LLMProviderStatus is what the operator observed about an LLMProvider.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions are Accepted (the Company exists), ResolvedRefs (every
Secret key exists) and Applied (the provider is in the revision the
engine runs).
MaxItems: 8
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}

LocalObjectReference names another object of the kind the referring field documents, in the referring object’s own namespace.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the metadata.name of the referenced object.MaxLength: 253
MinLength: 1
Required: {}

MCPCredentialValue is one value a tool server is started with for a seat: one of its credentials, from a Secret, or a setting that is no credential, written as a literal value. Whether it is an environment variable or a request header depends on the server’s transport, which is why its name follows the grammar of an HTTP header name, of which an environment variable’s name is a subset.

A literal value is for a setting such as a path: slack-mcp-server, for one, keeps the channels its bot can see in a file named after the workspace alone, so each seat names its own (SLACK_MCP_CHANNELS_CACHE), or seats on one engine pod are shown each other’s private channels. Crewlet treats every value of mcp_env as a credential and masks it on every read, and cannot tell a setting from a credential; the name can, so a name that says it holds a credential, as Crewlet reads one (see MCPEnvVar), takes valueFrom.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the environment variable’s name (Stdio) or the header’s name
(HTTP).
MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z0-9!#$%&'*+.^_|~-]+$
Required: {}
value stringvalue is a literal value, for a setting that is no credential. It
lands in the company document as written, where anyone who can read
this object reads it too. An empty string is a valid value, which is
why the field is a pointer.
MaxLength: 4096
Optional: {}
valueFrom SecretValueSourcevalueFrom is the Secret key a credential comes from. For a header the
value is the whole header, scheme included (for example “Bearer
”). A credential the engine mints for a seat’s account at a
vendor it provisions is never named here: the engine gives it to the
vendor’s tool server itself, and refuses a credential of that vendor’s
server here.
Optional: {}

MCPCredentials are the values one tool server is started with for a seat: environment variables for a Stdio server, request headers for an HTTP one. They map onto one server’s entry of Crewlet’s mcp_env, a credential position.

The server is named by a top-level name, as an imagePullSecrets entry names its Secret, rather than by a nested reference, because name is the key of the list that holds these: with a scalar key, server-side apply merges the list entry by entry, so that one field manager (a control plane’s GitHub flow, say) can own the credentials of one server without owning, or overwriting, every other server’s.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the metadata.name of the MCPServer, in this namespace, the
values are for.
MaxLength: 253
MinLength: 1
Required: {}
env MCPCredentialValue arrayenv are the values. For a Stdio server each is an environment
variable of its process; for an HTTP server each is a request header
(the name is the header’s name). Names must differ in more than case:
HTTP header names are case-insensitive, so Authorization and
authorization are one header.
MaxItems: 32
MinItems: 1
Required: {}

MCPEnvVar is one variable of a Stdio tool server’s environment, which every instance of the server starts with: a credential, read from a Secret, or a setting that is no credential, written as a literal value, such as the address of the service the server reaches or a switch that turns one of its tools on.

Crewlet treats a server’s whole environment as credentials, masking every value on every read, so it cannot tell the two apart; a name can. A name says it holds a credential when one of its parts, cut at every character that is not a letter or a digit and read without case, is KEY, KEYS, APIKEY, ACCESSKEY, SECRETKEY, TOKEN, SECRET, PASSWORD, PASSWD, CREDENTIAL, CREDENTIALS, AUTH, OAUTH or PAT, which is how Crewlet itself reads a credential’s name (harnessprofile.IsCredentialName), or when it is one of the HTTP headers that carry one, Authorization, Proxy-Authorization and Cookie; such a name takes valueFrom, never a literal. So GITLAB_TOKEN, TAVILY_API_KEY and X-Api-Key come from Secrets, and JIRA_URL or SLACK_MCP_ADD_MESSAGE_TOOL may be written out. The rule keeps a credential from being typed where a setting goes; a credential under a name that says nothing (a URL with a password in it, say) is still yours to keep in a Secret.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the variable’s name.MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Required: {}
value stringvalue is a literal value, for a setting that is no credential. It
lands in the company document as written, where anyone who can read
this object reads it too. An empty string is a valid value, which is
why the field is a pointer.
MaxLength: 4096
Optional: {}
valueFrom SecretValueSourcevalueFrom reads a credential from a Secret key.Optional: {}

MCPHeader is one header of every request to an HTTP tool server, which every instance of the server sends: a credential, read from a Secret, such as the Authorization header, or a setting that is no credential, written as a literal value, by the rule MCPEnvVar states.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the header’s name.MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z0-9!#$%&'*+.^_|~-]+$
Required: {}
value stringvalue is a literal value, for a setting that is no credential. It
lands in the company document as written, where anyone who can read
this object reads it too. An empty string is a valid value, which is
why the field is a pointer.
MaxLength: 4096
Optional: {}
valueFrom SecretValueSourcevalueFrom reads a credential from a Secret key, which holds the whole
header value, scheme included (for example “Bearer ”).
Optional: {}

MCPLimit narrows one tool server for the agent seats it applies to: a Seat, or every agent seat beneath a Unit at any depth. It maps onto one entry of Crewlet’s mcp_limits, keyed by the server’s name.

A limit only narrows. Crewlet holds each agent seat to the strictest of its own limits, every enclosing unit’s and the MCPServer’s own spec.tools: a server any of them turns off is off for the seat, and a tool runs at the strictest level any of them sets, so no limit lets a tool run that the MCPServer blocks or holds for approval. A server turned off keeps its grant (the MCPServer’s access) and the seat’s values for it.

A seat’s sandbox reaches a server whole, past the engine, so Crewlet refuses spec.sandbox.mcpServerRefs naming a server the seat’s limits hold a tool of back, which its dry run reports as Invalid on the Seat. A server a limit turns off is kept in the listing and given to no sandbox.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the metadata.name of the MCPServer, in this namespace, the
limit is on.
MaxLength: 253
MinLength: 1
Required: {}
enabled booleanenabled false turns the server off for the seats the limit applies to:
nothing of it starts for them and none of its tools is offered to them.
A limit cannot turn a server on, so true is refused. Crewlet’s
enabled, the MCPServer’s own word for it.
Optional: {}
tools MCPToolLimit arraytools holds tools of the server back, one entry each, by the server’s
own name for the tool. Crewlet’s tools. At most 256, the most tools
Crewlet lists of one server.
MaxItems: 256
MinItems: 1
Optional: {}

Underlying type: string

MCPLimitLevel is the level a limit holds a tool of a server to. It maps onto Crewlet’s limit levels (Approve is approve, Blocked blocked): Approve holds each call until a person allows or denies it, and Blocked never offers the tool. A limit has no Allow: only the MCPServer’s own spec.tools lets a tool run.

Validation:

  • Enum: [Approve Blocked]

Appears in:

FieldDescription
Approve
Blocked

MCPOAuth signs the company in to an HTTP tool server with OAuth: one grant for the whole company, on every pod that runs the server. grant says which: a person’s sign-in, made once from the server’s page in the engine’s dashboard and renewed by the engine (AuthorizationCode, the default), or a service identity, the company’s own client, which the engine signs in as with its id and secret whenever it needs an access token (ClientCredentials). It maps onto Crewlet’s mcp_servers[].oauth.

The grant itself is not here, nor anywhere the operator writes: what a person’s sign-in is granted (its refresh token, and the client a registration issues) is sealed in the engine’s own store and never read back out, and a service identity’s access tokens are held in the memory of the pod they were issued to alone. This says only how the engine signs in.

The rules below read grant as AuthorizationCode where it is unset, as Crewlet does, and hold each field to the grant: client for a person’s sign-in alone, clientID and clientSecret for the company’s own client, whichever grant signs in as it. No field is required by every grant, so an empty block is refused as one: it would say nothing of how to sign in.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
grant MCPOAuthGrantgrant is how the engine is granted access to the server.
AuthorizationCode, a person’s sign-in: an administrator signs the
company in once from the server’s page in the engine’s dashboard,
registered as client says, and the engine renews the grant.
ClientCredentials, a service identity: a client the company
registered at the vendor that signs in as itself, with no person
behind it. The engine signs in as it with clientID and clientSecret
whenever it needs an access token, so both are required, and client
is not allowed. Unset, it is a person’s sign-in. Crewlet’s grant.
Enum: [AuthorizationCode ClientCredentials]
Optional: {}
client MCPOAuthClientclient is how the engine registers at the server’s authorization
server for a person’s sign-in: CIMD, by the client metadata document
it publishes; DCR, by registering a client when a sign-in starts; or
Own, as a client an administrator registered at the vendor
beforehand. The engine’s check of a server’s address says which the
server supports. Required unless grant is ClientCredentials, and not
allowed with it: a service identity always signs in as the company’s
own client, so nothing is registered. Crewlet’s client.
Enum: [CIMD DCR Own]
Optional: {}
clientID stringclientID is the id the company’s own client was registered under at
the vendor: required with client Own and with grant
ClientCredentials, and not allowed with client CIMD or DCR, where the
id is the engine’s or the registration’s. Printable ASCII and spaces,
as RFC 6749 spells a client id, with no space at either end, and at
most 256 characters: Crewlet takes up to 2,048 bytes, and the API
server holds it to less so it can cost the rules over it. Crewlet’s
client_id.
MaxLength: 256
MinLength: 1
Optional: {}
clientSecret SecretValueSourceclientSecret reads the secret of the company’s own client from a
Secret key: required with grant ClientCredentials, which signs in
with it; with client Own, given for a client registered at the vendor
as confidential and left unset for a public one; and not allowed with
client CIMD or DCR. Crewlet signs in with it, at every renewal of a
person’s sign-in and at every access token a service identity is
issued, so it starts the server only once the value is there: a
Secret key that holds an empty value holds no document back, and the
MCPServer reports ResolvedRefs=False with SecretValueEmpty until it
holds one, while a Secret or key that does not exist holds the
document, as every reference does. Crewlet’s client_secret, a
credential position.
Optional: {}
scopes string arrayscopes are the scopes the sign-in asks for, in any order. Unset, a
person’s sign-in asks for the ones the server’s own metadata lists, or
none where it lists none, and a service identity asks for none, which
its authorization server answers with the client’s own default scopes.
Each is one scope token as RFC 6749 spells it: printable ASCII
characters with no space, double quote or backslash, at most 256 of
them, as Crewlet bounds a scope. At most 50 scopes, as Crewlet bounds
them. Crewlet’s scopes.
MaxItems: 50
items:MaxLength: 256
items:MinLength: 1
Optional: {}

Underlying type: string

MCPOAuthClient is how the engine registers at a tool server’s authorization server for a person’s sign-in. It maps onto Crewlet’s mcp_servers[].oauth.client (CIMD is cimd, DCR dcr, Own own).

Validation:

  • Enum: [CIMD DCR Own]

Appears in:

FieldDescription
CIMDMCPOAuthClientCIMD signs in as the client the engine describes in the
client metadata document it publishes at its own address, which is
the client’s id.
DCRMCPOAuthClientDCR registers a client at the authorization server when a
sign-in starts (dynamic client registration), which issues the id.
OwnMCPOAuthClientOwn signs in as a client an administrator registered at
the vendor beforehand, whose id clientID gives.

Underlying type: string

MCPOAuthGrant is how the engine is granted access to a tool server it signs the company in to with OAuth. It maps onto Crewlet’s mcp_servers[].oauth.grant (AuthorizationCode is authorization_code, ClientCredentials client_credentials).

Validation:

  • Enum: [AuthorizationCode ClientCredentials]

Appears in:

FieldDescription
AuthorizationCodeMCPOAuthGrantAuthorizationCode is a person’s sign-in: an administrator
signs the company in once from the server’s page in the engine’s
dashboard, and the engine renews the grant (OAuth’s authorization code
grant). A server whose oauth gives no grant is signed in to this way.
ClientCredentialsMCPOAuthGrantClientCredentials is a service identity: a client the
company registered at the vendor, which the engine signs in as with
its id and secret whenever it needs an access token, with no person
behind it (OAuth’s client credentials grant).

MCPSeatCredential is one per-seat credential a tool server reads. It maps onto one entry of Crewlet’s seat_credentials. The value is the engine’s to give each seat’s instance; nothing here names a credential.

Appears in:

FieldDescriptionDefaultValidation
kind SeatCredentialKindkind is the integration whose seat credential the server reads.
Crewlet’s kind.
Enum: [Atlassian Cloudflare Datadog DigitalOcean Expo GitHub GitLab GoogleCloud Mattermost Scaleway Slack]
Required: {}
field SeatCredentialFieldfield is which of the account’s credentials: an Atlassian account’s
Token or Email, a Scaleway key’s SecretKey or AccessKey. Unset is the
integration’s credential itself, an Atlassian account’s Token or a
Scaleway key’s SecretKey. Crewlet’s field.
Enum: [Token Email SecretKey AccessKey]
Optional: {}
key stringkey is the variable (Stdio) or header (HTTP) the server reads it
under, which the server’s transport decides. Crewlet’s key.
MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z0-9!#$%&'*+.^_|~-]+$
Required: {}
prefix stringprefix is text the value follows, such as “Bearer ” for an
Authorization header. Crewlet’s prefix.
MaxLength: 32
MinLength: 1
Optional: {}

MCPServer is a Model Context Protocol tool server a company’s agents call.

Its name is the server’s name in the company document, which Crewlet holds to lowercase letters, digits and ’-’, with no ’.’, at most 32 characters: it is the origin of every tool the server serves, the key a Seat’s or a Unit’s spec.mcp names it by, and part of every tool name an executor’s box hands its model for a server it runs.

The name crewlet is reserved: the engine gives a seat’s own tools that name, as the one MCP server each run of its harness calls them through, inside an executor’s box beside the servers its spec.sandbox.mcpServerRefs name. So is the name container: Claude Code takes a server of that name for its own container’s tools, and has the results of their calls cleared from a long session as its built-in tools’ own, so a run continuing the session would lose them. So is the name browser: Crewlet gives a seat’s own browser that name in the seat’s box, where a server called the same would be replaced by it, and refuses such a server in every company document, though no Seat of v1alpha1 has a browser, which runs only in Crewlet’s container cell.

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringMCPServer
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec MCPServerSpecspec is the server’s desired state.Required: {}
status MCPServerStatusstatus is the server’s observed state.MinProperties: 1
Optional: {}

MCPServerAccess is which agent seats a tool server reaches. It maps onto Crewlet’s mcp_servers[].access. A seat is reached when seatRefs names it, or when a Unit in unitRefs holds it at any depth and exceptSeatRefs does not name it; seatRefs wins over exceptSeatRefs, which is why the two may not name one Seat. A Human seat runs no tools and is reached by nothing, so naming one is refused.

Appears in:

FieldDescriptionDefaultValidation
unitRefs LocalObjectReference arrayunitRefs name Units whose agent seats get the server: every agent
seat in each Unit and in every Unit beneath it, at any depth, so a
seat that joins the Unit later gets it too. Crewlet’s access.units,
which names a Unit by its metadata.name, the Unit’s key.
MaxItems: 64
Optional: {}
seatRefs LocalObjectReference arrayseatRefs name agent Seats that get the server, each by itself.
Crewlet’s access.seats, which names a Seat by its handle.
MaxItems: 128
Optional: {}
exceptSeatRefs LocalObjectReference arrayexceptSeatRefs name agent Seats left out although a Unit in unitRefs
holds them. Crewlet’s access.except, which names a Seat by its
handle.
MaxItems: 64
Optional: {}

MCPServerSpec is one tool server a company’s agents call. It renders to one entry of Crewlet’s mcp_servers, named by the MCPServer’s metadata.name; Seats and Units give it per-seat values by that name.

Appears in:

FieldDescriptionDefaultValidation
companyRef CompanyReferencecompanyRef names the Company this server belongs to. Immutable.Required: {}
enabled booleanenabled runs the server. false turns it off and keeps it: the engine
starts no instance of it, the company’s, a seat’s or a box’s, and grants
it to no seat, while this object, its access, and every Seat’s and
Unit’s spec.mcp and spec.sandbox.mcpServerRefs that name it stay as they
are, held to every rule they are held to now, for the day it is turned
back on. A
value it would be started with is then read by nothing, so one whose
Secret key holds an empty value is no failure; a Secret or key that
does not exist still holds the document, as every reference does.
Crewlet’s enabled.
trueOptional: {}
description stringdescription says what the server is for. Each agent’s prompt lists
its tool servers by name before it shows any of their tools, and
prints this beside the name, so it is what tells an agent which server
to look in. One line of at most 200 characters, as Crewlet bounds it:
no control character, and neither of Unicode’s line and paragraph
separators (U+2028, U+2029), which break a line too. Crewlet’s
description.
MaxLength: 200
MinLength: 1
Optional: {}
transport MCPTransporttransport is how the engine reaches the server. Crewlet’s transport.StdioEnum: [Stdio HTTP]
Optional: {}
shared booleanshared launches one instance whose tools every agent seat the server
reaches (access) calls. false makes the server a template instead:
every agent seat it reaches gets an instance of its own, started with
the seat’s values for it from its own and its unit’s spec.mcp, which
is how each agent acts as itself on the server. A seat reached with no
such values gets one too, started with the server’s own. spec.mcp holds
values and grants nothing. Crewlet’s shared.
trueOptional: {}
access MCPServerAccessaccess is which agent seats the server reaches: whose turns are
offered its tools, from the one shared instance or, with shared
false, from an instance of the seat’s own, and whose executor box a
spec.sandbox.mcpServerRefs entry may give it. Unset, every agent seat
of the company, one added later too. Set, exactly the seats it names;
set and empty ({}) reaches no seat, which Crewlet warns of, and a
shared server’s one instance still starts (enabled false starts
nothing). A Seat’s or a Unit’s spec.mcp holds values for the seats a
server reaches and grants nothing: Crewlet refuses a Seat’s spec.mcp
entry or spec.sandbox.mcpServerRefs entry for a server that does not
reach the seat, and a Unit’s spec.mcp entry for one that reaches none
of the Unit’s own agent seats, except an entry for a server named
github, gitlab, datadog, atlassian, jira or confluence, which Crewlet
reads itself. A server with seatCredentials, or one Crewlet recognises
by its command or address as reading a vendor’s per-seat credential,
reaches the agent seats that are on at that vendor’s integration
(spec.integrations..enabled) and takes no access. Crewlet’s
access.
Optional: {}
command stringcommand is the executable a Stdio server is launched with, as a process
of the engine’s container, by the engine’s user. It must be installed
in the engine image, and Crewlet’s image ships no Python or Node.js
runtime (docs/guides/tool-servers.md). Crewlet’s command, which it
passes on as written: it resolves no ${NAME} in it.
MaxLength: 1024
MinLength: 1
Optional: {}
args string arrayargs are the executable’s arguments. Crewlet’s args, which it passes
on as written: it resolves no ${NAME} in them.
MaxItems: 64
items:MaxLength: 4096
Optional: {}
env MCPEnvVar arrayenv is the environment of a Stdio server’s process, shared by every
instance; per-seat values belong in a Seat’s or a Unit’s spec.mcp,
which win over these. It is laid over the part of the engine’s own
environment Crewlet hands a tool server: PATH, the locale, the TLS and
proxy variables and the engine user’s HOME, among a few others
(docs/guides/tool-servers.md). Nothing else of the engine’s
environment reaches the server: a variable the engine image sets with
ENV, or the class or the Company sets on the pod, reaches it only when
it is one of those, so every other variable the server reads is given
here. Crewlet’s env, a credential position.
MaxItems: 32
Optional: {}
url stringurl is the endpoint of an HTTP server: https, or plain http only to a
host on no public network, since every request carries the server’s
credentials. That is a loopback, private, link-local or shared (RFC
6598, where a tailnet addresses its machines) address, a one-label
name (a Service’s own name in its namespace), localhost, or
a name under .localhost, .local (a Service’s
..svc.cluster.local), .home.arpa or .internal, judged
by what the address says, as Crewlet judges it. Read by one pattern
over the address rather than through url(), whose parses the API
server’s cost budget for a rule cannot afford on an address this
long. Crewlet’s url.
MaxLength: 2048
MinLength: 1
Optional: {}
headers MCPHeader arrayheaders are sent with every request to an HTTP server, shared by every
instance; per-seat values belong in a Seat’s or a Unit’s spec.mcp.
Header names are case-insensitive, so names must differ in more than
case. Crewlet’s headers, a credential position.
MaxItems: 32
Optional: {}
oauth MCPOAuthoauth signs the company in to an HTTP server with OAuth, for a server
that takes no static token: the engine sends the access token it is
granted in the Authorization header of every request, and has a new
one before it runs out, on every pod that runs the server. Its grant
says how the engine is granted access. With AuthorizationCode, the
default, the engine registers at the server’s authorization server as
its client says and a person signs in once from the server’s page in
the engine’s dashboard: until somebody signs in, and again once the
vendor refuses to renew the grant, the engine starts no instance of
the server and reports it as needing a sign-in, so its tools go
unserved, and a grant is sent only to the address it was issued for,
so a changed url waits for a sign-in at the new address. With
ClientCredentials the engine signs in as the company’s own client, a
service identity, whenever it needs an access token: nobody signs in,
the server starts at once, and a vendor that refuses the client’s
credentials fails the server’s instances, which report the refusal.
One grant for the whole company, so only for a server whose shared is
true, and never beside an Authorization header in headers, which the
sign-in sends itself, nor beside a header named oauth.client_secret,
the key the engine’s dashboard stores the client’s secret under. No
executor’s box is given such a server: a Seat’s
spec.sandbox.mcpServerRefs naming it holds the company’s document,
since a box is handed a server’s credentials once, at its launch,
and cannot renew the access token, so the box reaches the server’s
tools through its tool bridge instead. Crewlet’s oauth.
MinProperties: 1
Optional: {}
optionalKeys string arrayoptionalKeys names the keys whose value may go missing: variables of env
(Stdio) or headers (HTTP), and the values every Seat and Unit gives the
server in spec.mcp, which land in the same environment or the same headers.
Crewlet starts a server only once every value it is started with has one, so
a value read from a Secret that does not exist, holds no such key or holds
an empty value keeps the server from starting. Under a key listed here, such
a value is left out instead, whole: the server starts without the variable,
or its requests go without the header, as Kubernetes starts a container
without an optional secretKeyRef. A missing Secret or key under one is then
no failure of the references of the object that gives the value, and holds
nothing back. Under the Enforce policy the operator also takes the value it
pushed for it out of the engine’s secret store, and has the engine read the
store again whether or not the document can be applied, so the server is not
started again with a deleted Secret’s value, but by a revision the engine
runs that reads the key as required (one from before the key was listed) or
whose reading the operator does not know (another document somebody else
activated), which keeps the value until the next document runs, and that one
is activated once with it and at once again without it; a Secret key that is
also read where it is required holds the document while it is missing, and
keeps the value it had in a revision the engine runs that requires it too
until the document applies. A Seat’s or a Unit’s value for a key replaces
the server’s whole, so one that goes missing leaves the key out rather than
handing the server’s own value back; and a provisioned value an Integration
mints for a seat is waited for whatever this says. Every entry must name a
key at least one value read from a Secret, or provisioned, is written under,
here or in a Seat’s or a Unit’s spec.mcp for this server: one under which
every value is a literal, which is never missing, or no value at all, leaves
nothing out and holds the document (ResolvedRefs=False with
OptionalKeyUnused), as Crewlet refuses it. A Stdio server’s keys are
compared as written, an HTTP server’s without case, as headers are.
Crewlet’s optional_keys.
MaxItems: 32
items:MaxLength: 128
items:MinLength: 1
items:Pattern: ^[A-Za-z0-9!#$%&'*+.^_|~-]+$
Optional: {}
seatCredentials MCPSeatCredential arrayseatCredentials declare which integration’s per-seat credential the
server reads, and under which variable (Stdio) or header (HTTP), so
the engine gives each seat’s instance that seat’s own credential: the
one it minted for the seat’s account, or the one the Seat hands in
for an integration it does not provision. Unset, a server the engine
recognises by its command or address (glab mcp serve, slack-mcp-server,
mcp-server-mattermost, mcp-atlassian, GitHub’s and Datadog’s remote
servers) reads what the engine knows it reads; a declaration replaces
that. A shared server reads none. A server that reads one reaches the
agent seats that are on at its integration
(spec.integrations..enabled, where Jira and Confluence are
Atlassian’s) and takes no access. Crewlet’s seat_credentials.
MaxItems: 8
Optional: {}
toolPrefix stringtoolPrefix is put in front of each of the server’s tool names, to keep
them apart from another server’s. Every harness puts a prefix of its
own in front of that before its model sees the tool, and a model takes
a tool name of at most 64 characters of letters, digits, _ and -, so
Crewlet offers a tool only where its prefixed name holds those alone
and is at most 50 characters long, what the longest such harness prefix
leaves; it never shortens one. A prefix of at most 49 leaves room for a
name. Crewlet’s tool_prefix.
MaxLength: 49
MinLength: 1
Pattern: ^[A-Za-z0-9_-]+$
Optional: {}
toolAnnotations MCPToolAnnotations arraytoolAnnotations correct the hints individual tools advertise.
Crewlet’s tool_annotations.
MaxItems: 128
Optional: {}
tools MCPToolstools sets the level each of the server’s tools runs at: default for
every tool, levels for one tool by the server’s own name. A Blocked
tool is never offered to an agent, a call to a tool at Approve waits for
a person’s answer, and a Seat’s sandbox may list only a server whose
every tool runs at Allow. autoAcceptChanges accepts each change to the
server’s tools without a review. Unset, a tool the server marks
read-only runs at Allow and every other tool at Approve, and each change
waits for a review. Crewlet’s tools.
MinProperties: 1
Optional: {}
startupTimeoutSeconds integerstartupTimeoutSeconds bounds starting the server and the handshake,
and separately its first tool listing, so a start can take up to twice
it before Crewlet gives the server up. Unset takes Crewlet’s default
of 120. Crewlet’s startup_timeout_seconds.
Minimum: 1
Optional: {}
requestTimeoutSeconds integerrequestTimeoutSeconds bounds one tool call. Unset takes Crewlet’s
default of 300. Crewlet’s request_timeout_seconds.
Minimum: 1
Optional: {}

MCPServerStatus is what the operator observed about an MCPServer.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions are Accepted (the Company exists), ResolvedRefs (every
Secret key exists) and Applied (the server is in the revision the
engine runs).
MaxItems: 8
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}

MCPToolAnnotations corrects the behavioural hints one tool advertises. The engine decides from them what a tool may be used for, such as whether a delegated worker may call it. Each field maps onto Crewlet’s tool_annotations entry; unset keeps what the server says.

Appears in:

FieldDescriptionDefaultValidation
tool stringtool is the tool’s name as the server publishes it, without any
prefix.
MaxLength: 128
MinLength: 1
Required: {}
readOnly booleanreadOnly marks a tool that changes nothing. Crewlet’s read_only.Optional: {}
destructive booleandestructive marks a tool whose effect cannot be undone. Crewlet’s
destructive.
Optional: {}
idempotent booleanidempotent marks a tool that can be repeated safely. Crewlet’s
idempotent.
Optional: {}
openWorld booleanopenWorld marks a tool that reaches outside the company. Crewlet’s
open_world.
Optional: {}

Underlying type: string

MCPToolLevel is the level a tool of a server runs at. It maps onto Crewlet’s tool levels (Allow is allow, Approve approve, Blocked blocked): Allow offers the tool to every agent the server reaches and runs each call, Approve offers it and holds each call until a person allows or denies it, and Blocked never offers it to an agent, which is then neither listed to nor callable by any of them.

Validation:

  • Enum: [Allow Approve Blocked]

Appears in:

FieldDescription
Allow
Approve
Blocked

MCPToolLevelEntry sets the level of one tool of a server. It maps onto one key of Crewlet’s tools.levels.

Appears in:

FieldDescriptionDefaultValidation
tool stringtool is the tool’s name as the server lists it, before toolPrefix:
the name an operator reads off the server’s listing, which stays the
same when the prefix changes. A name holds no space and no control
character, as no tool name does; a well-formed name the server does
not list blocks nothing, and Crewlet names it on the server’s page.
MaxLength: 128
MinLength: 1
Pattern: ^[^\p\{Z\}\p\{Cc\}]+$
Required: {}
level MCPToolLevellevel is the level the tool runs at.Enum: [Allow Approve Blocked]
Required: {}

MCPToolLimit holds one tool of a server to a level. It maps onto one key of an entry of Crewlet’s mcp_limits, tools.

Appears in:

FieldDescriptionDefaultValidation
tool stringtool is the tool’s name as the server lists it, before toolPrefix, as
the MCPServer’s spec.tools.levels names it. A name holds no space and
no control character, as no tool name does.
MaxLength: 128
MinLength: 1
Pattern: ^[^\p\{Z\}\p\{Cc\}]+$
Required: {}
level MCPLimitLevellevel is the level the tool is held to. It runs at the stricter of this
and its own level on the MCPServer.
Enum: [Approve Blocked]
Required: {}

MCPTools sets the level each tool of a server runs at, and whether a change to its tools waits for a person’s review. It maps onto Crewlet’s tools. A tool neither default nor levels sets starts at the level its hints give it (toolAnnotations applied): Allow for a tool the server marks read-only, Approve for every other, a tool with no hints included.

Crewlet never files a blocked tool, so no agent is offered, lists or calls it, on the engine or from an executor’s sandbox through the engine’s bridge, and it runs a call to a tool at Approve only once a person allows it: an executor’s run parks on the person’s answer, and every other phase is refused the call. A sandbox that lists the server in spec.sandbox.mcpServerRefs would reach it whole, past the engine, so a Seat may list only a server whose every tool runs at Allow (default Allow and no other level): the operator reports any other listing on the Seat and holds the document, as Crewlet refuses it.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
default MCPToolLeveldefault is the level of every tool levels does not name, a tool the
server adds later included. Unset, each such tool starts at the level
its hints give it: Allow for a tool the server marks read-only, Approve
for every other. Crewlet’s tools.default.
Enum: [Allow Approve Blocked]
Optional: {}
levels MCPToolLevelEntry arraylevels sets one tool’s level each, by the server’s own name for it.
Crewlet’s tools.levels. At most 256, the most tools Crewlet lists of
one server.
MaxItems: 256
MinItems: 1
Optional: {}
autoAcceptChanges booleanautoAcceptChanges accepts each change the server makes to its tools (a
tool changed, added or removed) as soon as Crewlet lists it, audited as
accepted automatically with what moved, instead of holding the tool for
a person’s review. Its tools can then change what they do unreviewed;
levels still decide every call. Unset is false. Crewlet’s
tools.auto_accept_changes.
Optional: {}

Underlying type: string

MCPTransport is how the engine reaches a tool server. It maps onto Crewlet’s mcp_servers[].transport (Stdio is stdio, HTTP is http).

Validation:

  • Enum: [Stdio HTTP]

Appears in:

FieldDescription
StdioMCPTransportStdio launches the server as a process next to the engine
and speaks to it over its standard input and output. The command must
exist in the engine image.
HTTPMCPTransportHTTP connects to a remote server over Streamable HTTP.

Underlying type: string

ManagedKind is the kind of object a seat manages.

Validation:

  • Enum: [Seat Unit]

Appears in:

FieldDescription
SeatManagedKindSeat is a single Seat.
UnitManagedKindUnit is every seat of a Unit and of the units below it.

ManagedReference names a Seat or a Unit, in the referring Seat’s namespace, that a seat manages.

Appears in:

FieldDescriptionDefaultValidation
kind ManagedKindkind is the kind of object named.SeatEnum: [Seat Unit]
Optional: {}
name stringname is the object’s metadata.name.MaxLength: 253
MinLength: 1
Required: {}

Underlying type: string

ManagementPolicy says who owns a company’s live document.

Validation:

  • Enum: [Enforce Observe Seed]

Appears in:

FieldDescription
EnforceManagementPolicyEnforce makes the operator the document’s only
writer. The engine refuses every other credential a change to the
document (403 config_managed), the published access token and a person
signed in at its dashboard included, and its dashboard shows the
document read-only; a revision made some other way all the same (the
engine’s own writes, or one made before the data pod restarted onto the
policy) is reported and overwritten.
ObserveManagementPolicyObserve renders and compares, and never writes; a
difference is reported only. The engine’s own users may change the
document.
SeedManagementPolicySeed writes the document once, into an engine that
has none, and then leaves it to the engine and its dashboard, whose
users may change it. Changes to the Company’s children are ignored
afterwards and say so in their status.

MattermostEngineProvisioning is how the engine provisions the seats’ Mattermost bots under provisioning Engine. It maps onto Crewlet’s integrations.mattermost.provisioning: for each agent seat whose spec.integrations.mattermost.botToken is provisioned, the engine creates a bot, adds it to the team and the channels, and mints its token into that value.

Appears in:

FieldDescriptionDefaultValidation
adminTokenSecretRef SecretKeyReferenceadminTokenSecretRef is the Secret key holding a system
administrator’s personal access token, which creates and disables the
bots. Crewlet’s admin_token, a credential position.
Required: {}
usernamePrefix stringusernamePrefix is put before each seat’s handle to form its bot’s
username, for a server shared with people. Crewlet’s
username_prefix.
MaxLength: 32
MinLength: 1
Pattern: ^[a-z0-9._-]+$
Optional: {}
channels string arraychannels are channels, by name (the URL slug), every bot joins: a bot
hears only the channels it is in. Crewlet’s channels.
MaxItems: 64
items:MaxLength: 64
items:MinLength: 1
items:Pattern: ^[a-z0-9][a-z0-9_-]*$
Optional: {}
displayNameSuffix stringdisplayNameSuffix is put after each bot’s display name, such as
” (AI)”, to tell agents from people at a glance. Crewlet’s
display_name_suffix.
MaxLength: 64
MinLength: 1
Optional: {}

MattermostIntegration turns Mattermost on for a company. It maps onto Crewlet’s integrations.mattermost. Mattermost delivers no webhook the engine can use: the engine holds a websocket per seat’s bot instead, so the integration needs no public address. Each seat’s bot is in its Seat’s spec.integrations.mattermost.

Appears in:

FieldDescriptionDefaultValidation
url stringurl is the address the engine reaches the server at, such as
https://chat.example.com: each seat’s websocket, the REST calls and
the bots’ provisioning go to it. It need not be the server’s Site URL,
which people browse and from which Mattermost builds its links; the
engine builds none from url. Any route to the server serves, such as
its in-cluster Service: the engine’s websockets carry no Origin
header, so Mattermost’s origin check, which holds a browser to the
Site URL, never applies to them. The server has to answer its API at
url without a redirect, which neither the engine nor the seats’
Mattermost tool server, given the same address as its MATTERMOST_URL,
follows: on the scheme that address is served on, and at the Site
URL’s path, outside which Mattermost redirects every request.
Crewlet’s url.
MaxLength: 2048
MinLength: 1
Required: {}
team stringteam is the team, by name (the URL slug), the bots belong to.
Crewlet’s team.
MaxLength: 64
MinLength: 1
Pattern: ^[a-z0-9][a-z0-9_-]*$
Required: {}
typingStatus WorkingStatustypingStatus is when a seat shows that it is typing. Unset takes
Crewlet’s default, Always; each indicator costs a request every few
seconds while the seat works. Crewlet’s typing_status.
Enum: [Always Addressed]
Optional: {}
engineProvisioning MattermostEngineProvisioningengineProvisioning is how the engine creates the seats’ bots.
Required with provisioning Engine, and not allowed with External.
Optional: {}

Underlying type: string

MattermostRole is a role or permission of a Mattermost account, under the identifier Mattermost’s API takes (SystemUser is system_user, the Member role; SystemPostAllPublic is system_post_all_public, post:channels; SystemPostAll is system_post_all, post:all; SystemAdmin is system_admin, System Admin).

Validation:

  • Enum: [SystemUser SystemPostAllPublic SystemPostAll SystemAdmin]

Appears in:

FieldDescription
SystemUserMattermostSystemUser is Member, the role every account holds.
SystemPostAllPublicMattermostSystemPostAllPublic is post:channels: post in every public
channel, a member or not.
SystemPostAllMattermostSystemPostAll is post:all: post in every channel, private
ones and direct messages included.
SystemAdminMattermostSystemAdmin is System Admin, which grants every other
administration privilege of the server too.

MattermostSeatIntegration is a seat’s own Mattermost bot. It maps onto Crewlet’s role integrations.mattermost and needs the company’s Mattermost Integration. One credential covers everything the bot does: the websocket the engine listens on, its REST calls, and the Mattermost tool server. Under the Integration’s provisioning Engine the engine creates the bot, gives it the roles and the channels, and mints its token; under External the bot is made outside the engine, and the engine reports its access as managed outside Crewlet.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat is on Mattermost. False keeps the bot,
which the engine deactivates and whose tokens it revokes. Crewlet’s
enabled.
Required: {}
roles MattermostRole arrayroles are the bot account’s roles: Member (SystemUser) alone, or
Member with one of post:channels, post:all and System Admin. Required
while the seat is on. Crewlet’s roles.
Enum: [SystemUser SystemPostAllPublic SystemPostAll SystemAdmin]
MaxItems: 4
MinItems: 1
Optional: {}
channels string arraychannels are the channels, by name (the URL slug), the bot is a
member of: it hears only the channels it is in. Where the Integration
lists engineProvisioning channels, each must be one of them: Crewlet
refuses another, which the engine’s dry run reports as Invalid on the
Seat. Crewlet’s channels.
MaxItems: 64
items:MaxLength: 64
items:MinLength: 1
items:Pattern: ^[a-z0-9][a-z0-9_-]*$
Optional: {}
botToken SecretValueSourcebotToken is the Secret key holding the personal access token of a bot
made outside the engine, under a Mattermost Integration with
provisioning External. Under provisioning Engine leave it unset: the
engine creates the bot and mints its token, which no document names,
and refuses one given here. The Secret key is the seat’s alone:
Crewlet refuses one another seat or a company block names too.
Crewlet’s bot_token, a credential position.
Optional: {}
username stringusername is the bot’s username, for a bot that exists under a name
other than the seat’s handle (with the Integration’s
engineProvisioning.usernamePrefix before it). Crewlet’s username.
MaxLength: 64
MinLength: 1
Pattern: ^[a-z0-9][a-z0-9._-]*$
Optional: {}

Underlying type: string

MetaAdsIdentity is whose identity a seat’s Meta Ads calls go as, which Meta records against each one. It maps onto Crewlet’s identity (Own own, Company company). Own is the seat’s own system user, which the engine makes with the company’s admin token, or a person makes in Business settings; the engine checks it before keeping it and on every pass, and until it keeps one the seat reads Needs you on its dashboard. Company is the company’s system user.

Validation:

  • Enum: [Own Company]

Appears in:

FieldDescription
Own
Company

MetaAdsIntegration connects a company’s Meta ad accounts through Meta’s Marketing API, with the company’s own Meta app. The engine holds one system user’s tokens from that app and makes every call for the agents through Crewlet’s own tools. No seat holds a token and no account is made for one, so the Integration’s provisioning stays unset. It maps onto Crewlet’s integrations.meta_ads, which it turns on. Meta delivers nothing to the engine: the Integration has no webhook.

Appears in:

FieldDescriptionDefaultValidation
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats asked first about a spend,
something customers see or an account change an agent asks for. Only
an administrator answers, at a fresh sign-in; unset asks every
administrator. Crewlet’s approvers, which names a Seat by its handle;
the engine’s dry run refuses an Agent seat.
MaxItems: 32
Optional: {}
appID stringappID is the company’s own Meta app’s ID, its digits: a Business app
with the Marketing API product, whose tokens the engine holds.
Crewlet’s app_id.
MaxLength: 20
MinLength: 1
Pattern: ^[0-9]+$
Required: {}
appSecretSecretRef SecretKeyReferenceappSecretSecretRef is the Secret key holding the app’s secret, from
its Basic settings. Every call carries a proof made with it, so turn
on Require App Secret in the app’s Advanced settings. Crewlet’s
app_secret, a credential position.
Required: {}
readTokenSecretRef SecretKeyReferencereadTokenSecretRef is the Secret key holding the token of the app’s
Employee system user with ads_read and no permission that writes,
which every read goes through. Crewlet’s read_token, a credential
position.
Required: {}
operateTokenSecretRef SecretKeyReferenceoperateTokenSecretRef is the Secret key holding the same system user’s
token with ads_management, for the changes agents make at once and the
spend and public acts an administrator allows. Unset, agents read
only. Crewlet’s operate_token, a credential position.
Optional: {}
adminTokenSecretRef SecretKeyReferenceadminTokenSecretRef is the Secret key holding the same system user’s
token with business_management, used only for an account change an
administrator allows (users, assets, catalogs, deletes), never for a
read or a change made at once. Crewlet’s admin_token, a credential
position.
Optional: {}
adminSystemUserTokenSecretRef SecretKeyReferenceadminSystemUserTokenSecretRef is the Secret key holding the token of
the business’s Admin system user, from the same app, with
business_management. The engine uses it only to make each agent’s own
Employee system user (a Seat with identity Own), assign it the Seat’s
ad accounts, and mint, renew and revoke its token, never for an
agent’s call. Needs businessID. Unset, a person makes each agent’s
system user in Business settings. Crewlet’s
admin_system_user_token, a credential position.
Optional: {}
businessID stringbusinessID is the business portfolio’s ID, its digits. When set, the
system user’s ad accounts are read as this business’s, and agents’
own system users are made in it. Crewlet’s business_id.
MaxLength: 20
MinLength: 1
Pattern: ^[0-9]+$
Optional: {}
adAccounts string arrayadAccounts are the IDs of the ad accounts agents may be given, each
act_ and its digits, or its digits alone, which Crewlet reads as act_
and them; every Seat’s adAccounts are among them. Unset is every ad
account the system user is assigned. Crewlet’s ad_accounts.
MaxItems: 200
items:MaxLength: 24
items:MinLength: 1
items:Pattern: ^(act_)?[0-9]\{1,20\}$
Optional: {}
spend GrowthSpendspend caps each ad account’s daily capacity, in its own currency,
naming each ad account as act_ and its digits. An ad account without
both caps refuses every spend act. Crewlet’s spend.
MinProperties: 1
Optional: {}

Underlying type: string

MetaAdsLevel is what a seat may do through the engine’s Meta Ads tools on its ad accounts, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read reads ad accounts, campaigns, ad sets, ads, creatives, audiences and insights; Operate adds, at once, a change that raises no spend and shows nobody anything new (a pause, a lowered budget or bid, a change nothing serves yet), and asking an administrator for any spend or anything customers see; Administer adds asking for account changes and deletes.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

MetaAdsSeatIntegration is a seat’s access to Meta Ads. It maps onto Crewlet’s role integrations.meta_ads and needs the company’s Meta Ads Integration. The seat holds no token: the engine makes each call the seat asks for as the company’s system user or, with identity Own, as the seat’s own, within its level and ad accounts, and holds a spend, something customers see or an account change for an administrator.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may use Meta Ads through the engine’s
tools. Crewlet’s enabled.
Required: {}
level MetaAdsLevellevel is what the seat may do on its ad accounts. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
adAccounts string arrayadAccounts are the IDs of the ad accounts the seat may touch, each
act_ and its digits, or its digits alone, which Crewlet reads as act_
and them; each once, in either spelling. They are among the
Integration’s adAccounts where it lists them: the engine’s dry run
refuses another. Required while the seat is on. Crewlet’s
ad_accounts.
MaxItems: 200
items:MaxLength: 24
items:MinLength: 1
items:Pattern: ^(act_)?[0-9]\{1,20\}$
Optional: {}
businessResources booleanbusinessResources lets the seat reach, within its level, what no ad
account owns (the business portfolio, Pages, Instagram accounts,
pixels, catalogs, apps, billing), and name it in a change. Unset is
false. Crewlet’s business_resources.
Optional: {}
identity MetaAdsIdentityidentity is whose identity the seat’s calls go as: Own, its own system
user, or Company, the company’s system user. Unset is Company.
Crewlet’s identity.
Enum: [Own Company]
Optional: {}

NamespacedSecretEnvVar is a named credential an EngineClass gives, delivered as an environment variable whose value is read from a Secret in a namespace the platform controls, such as a platform model provider’s key. Like SecretEnvVar it takes no literal value, and like NamespacedSecretKeyReference it is used only by the cluster-scoped EngineClass.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the variable’s name.MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Required: {}
valueFrom NamespacedSecretValueSourcevalueFrom is the Secret key the value is read from.Required: {}

NamespacedSecretKeyReference selects one key of a Secret in a named namespace. Only the cluster-scoped EngineClass uses it: a platform-owned value (a managed LLM key, telemetry headers) lives in a namespace the platform controls rather than in each tenant’s. The value itself still reaches every tenant that runs with it (see the field that references it); the namespace keeps tenants from the platform’s Secret, not from the value.

Appears in:

FieldDescriptionDefaultValidation
namespace stringnamespace is the namespace the Secret is in.MaxLength: 63
MinLength: 1
Required: {}
name stringname is the metadata.name of the Secret.MaxLength: 253
MinLength: 1
Required: {}
key stringkey is the key within the Secret’s data.MaxLength: 253
MinLength: 1
Pattern: ^[-._a-zA-Z0-9]+$
Required: {}

NamespacedSecretValueSource says where a value set by the cluster-scoped EngineClass comes from: a Secret in a namespace the platform controls.

Appears in:

FieldDescriptionDefaultValidation
secretKeyRef NamespacedSecretKeyReferencesecretKeyRef selects the Secret key that holds the value.Required: {}

NetworkPolicyEgress is where the engine may connect to, beyond DNS and its own namespace.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
exceptCIDRs string arrayexceptCIDRs are address blocks the engine may not reach, besides the
cloud metadata endpoints. List the cluster’s pod, Service and node
networks here: a NetworkPolicy has no other way to tell an address in
the cluster from one outside it, and without them an engine reaches
other tenants’ pods, the Kubernetes API server and the nodes. Each is
a canonical IPv4 or IPv6 CIDR, narrower than the whole address space.
MaxItems: 32
MinItems: 1
items:MaxLength: 43
Optional: {}
to NetworkPolicyPeer arrayto are pods in the cluster the engine may reach although
exceptCIDRs covers them: an in-cluster model gateway, the telemetry
collector, an object store.
MaxItems: 16
MinItems: 1
Optional: {}

Underlying type: string

NetworkPolicyMode is whether the operator restricts traffic to the engine.

Validation:

  • Enum: [Isolated None]

Appears in:

FieldDescription
IsolatedNetworkPolicyIsolated admits traffic to the engine’s API port only
from the operator’s pods, from the namespaces the Gateway proxies or
Ingress controller of the class’s API route run in
(gateway.proxyNamespaces, ingress.controllerNamespaces), and from the
class’s apiConsumers; to its public port only from where the webhooks’
route arrives from (the same fields of exposure.webhooks, or
webhooks.external.forwarders); and
lets the engine connect only as networkPolicy.egress says. It needs a
CNI that enforces NetworkPolicy, egress included.
NoneNetworkPolicyNone creates no NetworkPolicy.

NetworkPolicyPeer is the pods its podSelector selects in the namespaces its namespaceSelector selects, as a NetworkPolicy peer that sets both.

Appears in:

FieldDescriptionDefaultValidation
namespaceSelector LabelSelectornamespaceSelector selects namespaces by their labels; an empty one
selects every namespace. Select a namespace by name with the label
kubernetes.io/metadata.name, which the API server sets on every
namespace.
Required: {}
podSelector LabelSelectorpodSelector selects pods in those namespaces by their labels. Unset
selects every pod in them.
Optional: {}

NetworkPolicySettings is the NetworkPolicy the operator puts around each company’s engine pods.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
mode NetworkPolicyModemode is whether the operator restricts the engine’s traffic.IsolatedEnum: [Isolated None]
Optional: {}
apiConsumers NetworkPolicyPeer arrayapiConsumers are the pods admitted to the engine’s API port besides
the operator and the Gateway proxies or Ingress controller of the
class’s API route, and to nothing else of the engine (the public
port, which the webhooks reach, admits only where they arrive from):
the platform’s own components (a control plane, a dashboard) that
call the engines of this class’s companies. Each holds an access
token, which the engine still requires.
MaxItems: 16
MinItems: 1
Optional: {}
egress NetworkPolicyEgressegress narrows where the engine may connect to. The engine runs code
the tenant supplies in its pod (stdio MCP servers, harnesses, and
what its agents have them do), so under Isolated its pods may reach
DNS, the pods of their own namespace, and every address outside the
cluster except the cloud metadata endpoints (169.254.169.254,
fd00:ec2::254), which hand out the node’s credentials. What else is in
the cluster is unreachable only if listed in exceptCIDRs. A seat’s
Direct executor run is a process of the engine pod, so it egresses
under this policy, its box’s setup commands included: its vendor, its
code host and the package registries it installs from are reached
from the pod; it calls its tools and sends its traces to its own pod’s
listener on loopback, which no policy polices.
MinProperties: 1
Optional: {}

Underlying type: string

ObjectBackend is where a company’s files are kept. It maps onto Crewlet’s store.objects.backend (NATS is nats, S3 is s3).

Validation:

  • Enum: [NATS S3]

Appears in:

FieldDescription
NATSObjectBackendNATS keeps files in a bucket on the company’s own event
stream, on the data volume.
S3ObjectBackendS3 keeps files in an S3-compatible bucket.

ObjectSettings is where a class’s companies keep their files.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
backend ObjectBackendbackend is where files are kept. Changing it does not move existing
files.
NATSEnum: [NATS S3]
Optional: {}
s3 S3ObjectSettingss3 is the bucket, for backend S3.Optional: {}

PlatformLLMProvider is a model the platform offers to every Company of a class that sets spec.llm.usePlatformProviders: a harness, as a tenant’s own LLMProvider is, signed in with a key whose Secret lives in a namespace the platform controls and is pushed into the secret store of each opted-in company’s engine.

That store is the tenant’s to read: the engine’s API reveals any value in it to whoever holds the company’s access token (status.apiAccessSecretRef of the Company), and code the tenant runs in the engine’s pod can open it with the keyring the pod holds. So every opted-in tenant can read these keys. Offer keys you would give each of them: one per tenant, or the per-tenant virtual keys of an LLM gateway, never the platform’s own.

It signs its harness in with a key and nothing else: auth mode APIKey for a harness Crewlet hands a key to; auth mode Env, whose env signs the harness in alone, such as a ClaudeCode provider on the platform’s gateway with the token it issued the tenant in ANTHROPIC_AUTH_TOKEN, or a Copilot provider on a GitHub token in GH_TOKEN or GITHUB_TOKEN; or, for Hermes, Pi and OpenCode, which read their model provider’s key from that provider’s own variable, the key in env. A subscription’s headless token or login is one account’s, which every tenant of the class would share: it belongs on a tenant’s own LLMProvider. The phases it serves in the engine’s pod keep their per-seat homes on the data volume under /var/lib/crewlet/llm-harness-platform/, apart from every tenant’s loginName.

A ClaudeCode, Codex, GeminiCLI, QwenCode, OpenCode, CursorAgent, Copilot, Grok, MuseCode, KimiCode, Hermes or Pi platform provider may also be the member a seat’s executor launches on, its harness’s own run, on the tenant’s engine pod that holds the seat: its key is then in that pod, where the tenant reads it already. That run gets its whole env, as of an LLMProvider’s, so a ClaudeCode platform provider whose env points it at the platform’s gateway (ANTHROPIC_BASE_URL) runs its seats’ executors through the gateway too, with the key it issued. Its rules are an LLMProvider’s that apply to such a provider, each with the same message’s start, and hold to the same engine.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the provider’s name. Seats and the Company’s model order refer
to it with kind PlatformLLMProvider. It may not be default, which
Crewlet would run every chainless seat of every opted-in company on,
whatever the company’s own order says.
MaxLength: 63
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Required: {}
harness Harnessharness is which harness to drive: the vendor’s own command-line tool
that runs the model. The model is written as this harness reads it, and a seat’s executor
run on the provider is handed it unchanged: OpenCode reads
<provider>/<model>, such as anthropic/claude-sonnet-5. Only
ClaudeCode, Codex, GeminiCLI, QwenCode, OpenCode, CursorAgent, Copilot,
Grok, MuseCode, KimiCode, Hermes and Pi run a seat’s executor; every harness serves a seat’s
other phases. Crewlet’s harness
(providers.llm..harness).
Enum: [ClaudeCode Codex GeminiCLI QwenCode OpenCode CursorAgent Copilot Grok MuseCode KimiCode Hermes Pi]
Required: {}
model stringmodel is the model the harness runs, in the harness’s own grammar: an alias
or an id for ClaudeCode (sonnet, claude-opus-5-5), an OpenAI id
for Codex, <provider>/<model> for OpenCode. Crewlet’s model.
Crewlet trims it of white space and refuses a provider with nothing
left, as naming no model.
MaxLength: 256
MinLength: 1
Required: {}
timeoutSeconds integertimeoutSeconds bounds one stretch of the harness’s model work, wall clock,
with no call of a seat’s tool in flight: from the harness’s launch, or the
answer to its last tool call, to its next tool call or its end, the
model’s answer and the harness’s own retries in it. It is not a bound on
a run of the harness, which asks the model many times and calls the
seat’s tools between: a tool call stops the clock however long it
takes (a delegation, a slow tool server), and the next stretch starts
afresh. Unset takes Crewlet’s default of 600, the ceiling Anthropic
documents for one answer of a current Claude model at its full
output. A timeout is retryable, so a seat’s chain moves on to its
next provider. It bounds the phases the harness runs in the engine’s
process (the reviewer, delegated workers, the summariser, the judge);
a seat’s executor run on the provider, its harness’s own run in a box, is
not on this clock: its rounds are capped only where the Company’s
spec.sandbox.defaultMaxTurns or the Seat’s spec.sandbox.maxTurns sets a
cap.
Crewlet’s timeout_seconds.
Minimum: 1
Optional: {}
maxConcurrent integermaxConcurrent is how many of the provider’s harness processes run at once
in each engine pod; each takes 200 to 450 MB of the pod’s memory,
OpenCode’s at the top of that range (docs/guides/harnesses.md). One
process lives for a whole run of the harness, many model requests and
tool calls long, and holds its place for all of it, so this is also
how many seats’ runs the provider has going at once in a pod: a run
past it waits for a place. A model call made on the same provider
from inside one of a run’s tool calls (a delegated worker’s) borrows
the run’s place rather than wait for another, which the runs holding
every place could leave it waiting for forever. Unset takes
Crewlet’s default of 4. A seat’s executor run takes none: it is a
process of its own box, and a seat runs one at a time. Crewlet’s
max_concurrent.
Maximum: 64
Minimum: 1
Optional: {}
webTools HarnessWebToolswebTools is whether the harness keeps its own web tools in the seats’
runs. Unset is Allowed, every seat’s default. Ask Crewlet’s runs of the
provider (spec.assistant.model) do not read it: a turn has the web tools
off and a search has the harness’s web search alone.
Denied is refused for a harness Crewlet has no way to turn the web off
for: it takes ClaudeCode, Codex, OpenCode, Copilot, KimiCode or Pi. Crewlet’s
overrides.web_tools.
Enum: [Allowed Denied]
Optional: {}
effort stringeffort is how hard the model reasons, in the harness’s own levels; unset
runs the harness’s default. Crewlet’s effort.
MaxLength: 16
MinLength: 1
Optional: {}
auth PlatformLLMProviderAuthauth is how the harness signs in. Crewlet’s auth.MinProperties: 1
Required: {}
env NamespacedSecretEnvVar arrayenv is extra environment of the harness, as an LLMProvider’s spec.env is,
each value read from a Secret in a namespace the platform controls:
the model provider’s key Hermes, Pi or OpenCode signs in with, the
address of the platform’s gateway a harness reads from its environment
(ClaudeCode’s ANTHROPIC_BASE_URL), or, under auth mode Env, the token
that gateway issued the tenant (ANTHROPIC_AUTH_TOKEN), for every phase
the provider serves. ClaudeCode’s sign-in names (ANTHROPIC_AUTH_TOKEN
and the CLAUDE_CODE_USE_* switches) and Copilot’s (GH_TOKEN and
GITHUB_TOKEN) are refused under every other mode. A seat’s executor
run on the provider gets all of it, beneath the Seat’s own
spec.sandbox.env, on the tenant’s engine pod, the gateway’s address
included.
Crewlet’s env, a credential position.
MaxItems: 16
Optional: {}

PlatformLLMProviderAuth is how a platform provider signs its harness in. It maps onto the auth of a Crewlet providers.llm entry, as an LLMProvider’s HarnessAuth does, without the subscription’s headless token and credential bundle, which are one account’s.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
mode HarnessAuthModemode is how the harness signs in: APIKey, with apiKeySecretRef; Env, which
signs the harness in with env alone, as an LLMProvider’s auth mode Env
does; or Subscription, which signs Hermes, Pi or OpenCode in with its
model provider’s key in env. Unset is Subscription. Crewlet’s mode.
Enum: [Subscription APIKey Env]
Optional: {}
apiKeySecretRef NamespacedSecretKeyReferenceapiKeySecretRef is the Secret key holding the API key auth mode
APIKey hands the harness, in the key variable Crewlet’s profile for it
names. Crewlet’s api_key, a credential position.
Optional: {}

Underlying type: string

PreflightMode is whether an engine image is validated before a Company’s data pods move to it.

Validation:

  • Enum: [Required Disabled]

Appears in:

FieldDescription
RequiredPreflightRequired runs the new image’s crewlet validate before any
data pod moves to it.
DisabledPreflightDisabled moves the data pods to a new image at once.

ProvisionedCredential is one of a seat’s credentials the engine mints: an Integration with provisioning Engine (GitLab, Mattermost, Datadog, Cloudflare, Scaleway, Atlassian) makes the seat’s account at the vendor, mints the account’s credential, and seals it in the engine’s own secret store under a name the engine gives it for the seat, <VENDOR>_<FIELD>_<HANDLE>, such as GITLAB_TOKEN_ANA. At Expo a person makes the seat’s robot and pastes its token, and at DigitalOcean a person makes the seat’s personal access token and pastes it; the engine checks each and seals it under the same kind of name. The engine hands it to the vendor’s tool server itself; naming it here hands it to the seat’s executor runs too, such as the GitLab token git uses in the seat’s box. Nothing but the engine ever writes that store entry: the operator pushes no value into it and deletes none it finds there (ADR-0004).

Appears in:

FieldDescriptionDefaultValidation
vendor ProvisionedVendorvendor is the vendor whose account the credential is of.Enum: [GitLab Mattermost Datadog Cloudflare Expo DigitalOcean Scaleway Atlassian]
Required: {}
field ProvisionedFieldfield is which of the account’s credentials.Enum: [Token Email AppKey BotToken APIToken SecretKey AccessKey]
Required: {}

Underlying type: string

ProvisionedField is one credential the engine mints for a seat’s account at a vendor. It maps onto the field in the engine’s own name for it (Token is TOKEN, Email EMAIL, AppKey APP_KEY, BotToken BOT_TOKEN, APIToken API_TOKEN, SecretKey SECRET_KEY, AccessKey ACCESS_KEY).

Validation:

  • Enum: [Token Email AppKey BotToken APIToken SecretKey AccessKey]

Appears in:

FieldDescription
Token
Email
AppKey
BotToken
APIToken
SecretKeySecretKey is an API key’s secret, and AccessKey the identifier that
names it: Scaleway’s scw CLI reads both.
AccessKey

Underlying type: string

ProvisionedVendor is a vendor whose seat accounts the engine creates, under an Integration with provisioning Engine. It maps onto the vendor’s name in the engine’s own name for a credential it mints (GitLab is gitlab, Mattermost mattermost, Datadog datadog, Cloudflare cloudflare, Expo expo, DigitalOcean digitalocean, Scaleway scaleway, Atlassian atlassian).

Validation:

  • Enum: [GitLab Mattermost Datadog Cloudflare Expo DigitalOcean Scaleway Atlassian]

Appears in:

FieldDescription
GitLab
Mattermost
Datadog
Cloudflare
Expo
DigitalOcean
Scaleway
Atlassian

Underlying type: string

ReplacedRevision is what a write of the company document replaced where that was more than the operator’s own document.

Validation:

  • Enum: [Unsealed Drifted]

Appears in:

FieldDescription
UnsealedReplacedUnsealed is a revision the engine stores without a seal, which
nobody can read and a whole document replaces.
DriftedReplacedDrifted is a revision the operator did not write whose
document differed from the rendered one.

RetentionSettings is who answers for a class’s companies’ backups.

Appears in:

FieldDescriptionDefaultValidation
backupOwner stringbackupOwner names whoever is responsible for backing up the companies’
data volumes; the engine warns while none is named. Crewlet’s
retention.backup_owner. It may not hold a ${NAME} reference, which
Crewlet would expand from the pod’s environment.
MaxLength: 256
MinLength: 1
Required: {}

RevisionPlacement is where a revision of the company document pins its agent seats: the values of the two placement labels its roles name. Only values that can name one of the company’s pods are recorded: a pool name and a seat handle.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
pools string arraypools are the values of the crewlet.ai/pool placement label: data,
and each Shared pool a seat is pinned to.
MaxItems: 64
items:MaxLength: 20
items:MinLength: 1
items:Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}
seats string arrayseats are the values of the crewlet.ai/seat placement label: the
handle of each seat pinned to its own pods in a PerSeat pool. A
revision that pins more seats than the list holds records the first
in handle order; the pods of the others are kept only while their
seats stay in a PerSeat pool.
MaxItems: 1024
items:MaxLength: 63
items:MinLength: 1
items:Pattern: ^[a-z0-9][a-z0-9-]*$
Optional: {}

S3ObjectSettings is the S3-compatible bucket a class’s companies keep their files in. Each field maps onto the same-named field of Crewlet’s store.objects.s3.

The bucket’s credentials are each Company’s own (its spec.objects.credentialsSecretRef), not the class’s: whatever reaches a company’s engine pod is readable by code the tenant runs there (a stdio MCP server, a harness), so a key the class shared would let every tenant read and write every other tenant’s files.

Crewlet reaches the bucket when it starts (a HeadBucket request, on the data pods and the seat pods alike), and refuses to start when it cannot. Some settings fail that request before it is sent, through the S3 client Crewlet is built with (the AWS SDK for Go), however the bucket is set up, so the API refuses them where they are written rather than every pod crash-looping on them: each rule below names one.

Appears in:

FieldDescriptionDefaultValidation
endpoint stringendpoint is the S3 API’s base URL. Unset is Amazon S3’s own endpoint
for the region. Crewlet refuses at start an endpoint that names no
host, one with a query, and one whose host is not a name, an IPv4
address or an IPv6 address in brackets (with no percent-encoding in its
zone) followed by at most one port, and no connection is made on a
port outside 1 to 65535, so the API refuses each. Nor may it hold a
${NAME} reference, which Crewlet would expand from each pod’s
environment.
It also refuses a host that is the pod’s own, which Crewlet takes and
dials: localhost, an address of 127.0.0.0/8 or ::1 in any spelling
(::ffff:127.0.0.1 among them), the unspecified 0.0.0.0 or ::, and none
before a port (http://:9000, which Crewlet reads as this host). No pod
the operator runs carries a second container, so nothing listens on
its loopback, and the engine would wait out its probe of the bucket
there before it refused to start.
MaxLength: 2048
MinLength: 1
Optional: {}
region stringregion is the bucket’s region. Every request is signed for one, even
where the provider ignores it (Cloudflare R2: auto, MinIO: us-east-1).
Crewlet’s S3 client puts it into a host name, and refuses at start a
region that is not one: letters, digits and ’-’ in labels of at most 63
joined by ’.’, none starting or ending with ’-’. Crewlet trims the white
space around it first, and refuses one of white space alone.
MaxLength: 64
MinLength: 1
Required: {}
bucket stringbucket is the bucket’s name: a general purpose bucket’s. Crewlet’s S3
client reads a name that begins with arn: as an access point’s ARN, and
one that ends with —x-s3, —xa-s3 or —op-s3 as an S3 Express One Zone
directory bucket or an Outposts access point alias, each of which it
addresses in a way of its own and refuses at start where it cannot, so
the API refuses those names. Crewlet trims the white space around it,
and refuses one of white space alone. It may not hold a ${NAME}
reference, which Crewlet would expand from each pod’s environment.
MaxLength: 63
MinLength: 3
Required: {}
prefix stringprefix is Crewlet’s store.objects.s3.prefix, prepended to every key as
it is, so that one bucket holds many companies. It is a template:
{{namespace}}, {{name}} and {{uid}} are replaced by the Company’s
namespace, name and UID, and the result must differ between
companies, so it must contain {{uid}}, or {{namespace}} and {{name}}
joined by a ’/’ or ’.’, which neither can hold (with a ’-’ between
them, team-a/b-web and team-a-b/web would share keys); and it ends
with ’/’, so that no company’s prefix starts another’s. The default
keys files by namespace and name, which is also what the data volumes
are named by: a Company re-created under its old name after a Retain
deletion finds both its estate and its files again.
Crewlet refuses to start on a prefix past 1024 characters, so the
template may come to at most 1024 once expanded for any Company:
counting each {{namespace}} as 63 characters, each {{name}} as 47 (a
Company’s name is at most 47) and each {{uid}} as 36. The default
comes to at most 112. It may not hold a ${NAME} reference, which
Crewlet would expand from each pod’s environment before it counts:
to another length, and to a prefix that differs between the pods of
one company. Nor may it make one once expanded, as ${{{name}}} does
for a Company named acme, whose own spec.runtime.env could then set
it: the rule reads {{name}} and {{namespace}} as a name that could
complete a reference, and {{uid}} as the ’-’ every UID holds, which
none can. Nor may it start with white space, which Crewlet trims,
so that every key starts with the prefix as it is written.
{{namespace}}/{{name}}/MaxLength: 256
MinLength: 1
Optional: {}
pathStyle booleanpathStyle addresses the bucket in the URL path rather than in the host
name; MinIO and most self-hosted gateways need it.
Optional: {}

SandboxEnvVar is a variable a sandbox setup step merges into the environment of its commands and of a coding run. Crewlet treats every value there as a credential, so a literal value is not accepted: the value always comes from a Secret.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the variable’s name. It may not be one Crewlet sets in a box
itself, which Crewlet refuses in every company document:
CREWLET_GIT_ACCESS_FILE, CREWLET_GIT_URL, CREWLET_CHECK_REPO,
CREWLET_CHECK_SHA, CREWLET_CHECK_BASE, CREWLET_CHECK_NAME,
CREWLET_CHECK_ATTEMPT, CREWLET_CHECK_API or CREWLET_CHECK_SUMMARY
(Crewlet’s ReservedSandboxEnv).
MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Required: {}
valueFrom SecretValueSourcevalueFrom is the Secret key the value is read from.Required: {}

SandboxFile is a file written into a seat’s executor box before its commands run. Its content is a credential position in Crewlet (it typically holds a git or registry login), so it always comes from a Secret.

Appears in:

FieldDescriptionDefaultValidation
path stringpath is where the file is written in a seat’s executor box. A box is a
directory Crewlet mints for each run on the engine pod that holds the
seat, and writes a setup file only inside its own home: a relative
path, such as .npmrc, and one starting ~/ are joined onto that home.
An absolute path, one that climbs out with .., and one naming the home
itself are refused, since no document can name a home minted per box,
and so is a path starting ~ and a name, such as ~root/.npmrc, since a
box does not expand another account’s home, or ~ and a backslash, which
a box reads as part of a file name, not a separator. Crewlet’s files
key.
The API refuses white space alone, an absolute path, and a leading ~
followed by anything but a /. How .. and repeated separators resolve is
left to Crewlet, which refuses a company document that gives a seat’s
box a path its home cannot hold: that is reported on the Company as
ConfigApplied=False Invalid for a step of the Company’s own, and on the
Seat as Applied=False Invalid for a step of a Seat’s. Either way the
document is held and the running revision stays.
MaxLength: 1024
MinLength: 1
Required: {}
valueFrom SecretValueSourcevalueFrom is the Secret key holding the file’s content.Required: {}

SandboxSettings tunes the boxes a company’s agent seats’ executors run in. It maps onto Crewlet’s providers.sandbox, which the operator writes for every company whether or not this is set: every agent seat’s executor is its harness’s own run in a box, and Crewlet refuses a company with an agent seat and a model provider whose document configures none.

Every executor run is Crewlet’s direct cell (default_run_in), a process tree of the engine pod that holds the seat, a data pod or a seat pod, in a box of its own on the pod’s sandboxes volume (local.state_dir), with its HOME, XDG and temporary directories inside the box and an allowlisted environment. That isolates the run’s state, as Crewlet puts it, but not the host: the harness runs as the engine’s user, with the pod’s network, CPU and memory, and reads what the engine reads, the keyring in its crewlet.yaml and the store among it, and on a data pod the data volume. A box is seeded with its provider’s login, a credential bundle’s included, and calls the seat’s tools back on the pod’s own listener, on loopback, with or without a public address. A run dies with its pod: a restart or a rolling update ends the runs in flight on it, and Crewlet carries each run’s round on in a fresh run, at most twice a round. Crewlet’s container cell is not offered, as an engine pod has no container runtime.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
hostGraceSeconds integerhostGraceSeconds is how long an engine pod that launched boxes may be
gone from the fleet, or its store silent, before the runs it launched
are found lost (launch_node_gone) and the pod that holds each run’s
seat next carries its round on in a fresh run; it is also how old a
box left on a pod’s sandboxes volume must be before the pod reclaims
it. It never stops a running job. Unset takes Crewlet’s default of
900. Crewlet’s host_grace_seconds.
Minimum: 1
Optional: {}
defaultPauseTTLSeconds integerdefaultPauseTTLSeconds is how long a box waiting on a person’s
answer stays paused before it is reclaimed. Unset takes Crewlet’s
default of 1800; 0 never pauses. Crewlet’s
default_pause_ttl_seconds.
Minimum: 0
Optional: {}
defaultMaxTurns integerdefaultMaxTurns caps the agentic rounds of one executor run on seats
that name none. Unset or 0 leaves runs uncapped: how many rounds a task
takes is its harness’s to judge, and an executor run is never stopped
on a clock. At most 1000, Crewlet’s own ceiling: a capped run keeps a
record of every request in its box; work that needs more is split, or
left uncapped. Crewlet’s default_max_turns.
Maximum: 1000
Minimum: 0
Optional: {}
commitAttribution booleancommitAttribution credits Crewlet on every commit an executor run
makes as itself, Co-authored-by: Crewlet <[email protected]>, and
names what the commit was made for: Crewlet-Seat: the seat’s handle,
Crewlet-Run: the run’s turn and Crewlet-Work-Item: the item its
turn is charged to, or none. Git adds them, through a hook the run’s
box is given, and a person’s commit the run amends, cherry-picks or
rebases keeps no credit. Unset takes Crewlet’s default, on; false
writes none of the four. Crewlet’s commit_attribution.
Optional: {}
setup SandboxSetupStep arraysetup is applied to every executor box before each seat’s own steps.
Crewlet’s setup.
MaxItems: 16
Optional: {}

SandboxSetupStep is one provisioning step applied to a seat’s executor box before its harness starts. It maps onto a Crewlet sandbox setup step, which Crewlet refuses when it does nothing (no files, commands, env or brief): that is almost always an unfinished edit, which would otherwise apply cleanly for ever and look like it was working.

Appears in:

FieldDescriptionDefaultValidation
name stringname identifies the step in logs and failure messages, so Crewlet
refuses one of white space alone, and so does the API.
MaxLength: 63
MinLength: 1
Required: {}
files SandboxFile arrayfiles are written into the box before the commands run. Crewlet’s
files, a credential position.
MaxItems: 16
Optional: {}
commands string arraycommands are shell commands run in order; one that exits non-zero
fails the box. Crewlet’s commands. Crewlet resolves nothing in a
command: the box’s shell expands $NAME and ${NAME} from the box’s own
environment (its HOME and PATH among it) and the run’s, never from the
engine’s. The run’s is the steps’ env, the Seat’s sandbox env, and
what Crewlet adds: the agent’s handle and, when it has one, its email,
and the variables that sign the executor’s harness in to the provider it
runs on (docs/guides/credentials.md says which, and when the seat’s
own env leaves them out). The API refuses ${NAME} (NAME an identifier)
all the same, as the operator refuses every ${NAME} it did not write
in a string it renders: write a box variable as $NAME. Parameter
expansions such as ${1:-x} are allowed.
MaxItems: 32
items:MaxLength: 4096
items:MinLength: 1
Optional: {}
env SandboxEnvVar arrayenv is merged into the environment of the commands and of the run.
It may not set a variable Crewlet sets in a box itself, which Crewlet
refuses in every company document, as a Seat’s spec.sandbox.env may
not: CREWLET_GIT_ACCESS_FILE, CREWLET_GIT_URL and the seven CREWLET_CHECK_
variables a check’s box is told of its check: REPO, SHA, BASE, NAME,
ATTEMPT, API and SUMMARY (Crewlet’s ReservedSandboxEnv).
Crewlet’s env, a credential position.
MaxItems: 32
Optional: {}
optionalKeys string arrayoptionalKeys names variables of env, and paths of files, whose value
may go missing. A seat’s executor run starts without a value that does
not resolve, a Secret that does not exist, holds no such key or holds
an empty value, whether or not it is listed here: the run is the
seat’s turn itself, and refusing it would fail every message the seat
could answer meanwhile. Unlisted, the engine logs each such value as a
gap of the run (sandbox_env_unresolved), and the operator reports an
empty one on the object that gives it; listed, the variable is left
out of the run and the file is not written, quietly, as an absence
that is expected. A missing Secret or key under one is then no failure
of the object’s references and holds nothing back. Under the Enforce
policy the operator also takes the value it pushed for it out of the
engine’s secret store, and has the engine read the store again whether
or not the document can be applied, so no run starts with a deleted
Secret’s value, but in a revision the engine runs that reads the key as
required (one from before the key was listed) or whose reading the
operator does not know (another document somebody else activated),
which keeps the value until the next document runs, and that one is
activated once with it and at once again without it; a Secret key that
is also read where it is required holds the document while it is
missing, and keeps the value it had in a revision the engine runs that
requires it too until the document applies. A later step’s variable of
the same name wins over this one’s, and the Seat’s spec.sandbox.env
over every step’s, and the list beside the value that wins is the one
that counts for it; a file is the step’s own. Crewlet’s
optional_keys.
MaxItems: 48
items:MaxLength: 1024
items:MinLength: 1
Optional: {}
brief stringbrief tells the executor’s harness what this step made true about its
box.
MaxLength: 2048
MinLength: 1
Optional: {}
timeoutSeconds integertimeoutSeconds caps each command of the step.Minimum: 1
Optional: {}

ScalewayIntegration connects a company’s Scaleway Organization, in which the engine makes one IAM application, with one policy at that seat’s level on its projects and its own API key, for each agent Seat whose spec.integrations.scaleway is enabled, through the provisioner key. It maps onto Crewlet’s integrations.scaleway, so the Integration’s provisioning is Engine. Scaleway delivers nothing to the engine: the Integration has no webhook.

The provisioner key can mint keys for, and grant anything to, any application in the Organization: an API key has no attribute naming its application, so no Scaleway condition can keep it to the agents’. Give it a short expiry and rotate it.

Appears in:

FieldDescriptionDefaultValidation
organizationID stringorganizationID is the Organization the agents’ applications are made
in, from the Organization settings. Crewlet’s
provisioning.organization_id.
MaxLength: 36
MinLength: 36
Pattern: ^[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}$
Required: {}
accessKey stringaccessKey is the provisioner API key’s access key, which names the key
and grants nothing alone. Crewlet’s provisioning.access_key.
MaxLength: 20
MinLength: 20
Pattern: ^SCW[A-Z0-9]\{17\}$
Required: {}
secretKeySecretRef SecretKeyReferencesecretKeySecretRef is the Secret key holding the provisioner key’s
secret: an API key of an IAM application holding IAMApplicationManager,
IAMPolicyManager and ProjectReadOnly on the Organization. Crewlet’s
provisioning.secret_key, a credential position.
Required: {}
atlas booleanatlas has the engine make one more IAM application, named for the
atlas, with read-only permission sets on every project and its own
API key, and read the Organization’s servers, clusters, databases,
load balancers, bucket names, DNS zones, containers and functions
under it. Unset is false; false deletes the application, its policy
and its key. The engine seals that key itself, so there is no Secret
to reference. Crewlet’s atlas.
Optional: {}

Underlying type: string

ScalewayLevel is what a seat’s Scaleway policy grants on its projects. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer), least access first. Read reads servers, storage, networks, DNS and databases, and the audit trail; Operate adds restarting servers and changing firewalls, IPs, load balancers and private networks; Administer adds creating and changing servers, disks, databases, Kubernetes and the registry, which can leave access behind in them, and granting it needs a fresh sign-in on the dashboard.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

ScalewaySeatIntegration is a seat’s own IAM application on Scaleway. It maps onto Crewlet’s role integrations.scaleway and needs the company’s Scaleway Integration, under which the engine makes the application with one policy granting the seat’s level on its projects, mints its API key and replaces the key before it expires.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat has its own Scaleway application. False
deletes its keys, its policy and the application; true again makes new
ones. Crewlet’s enabled.
Required: {}
level ScalewayLevellevel is what the seat’s policy grants on its projects. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
projects string arrayprojects are the Scaleway project IDs the seat’s policy grants its
level on, each a project of the Organization: the engine reports one
it does not have. Required while the seat is on. Crewlet’s projects.
MaxItems: 128
items:MaxLength: 36
items:MinLength: 36
items:Pattern: ^[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}$
Optional: {}

Schedule is recurring work a seat or a unit owns, fired on a cron schedule: the CronJob of a company.

The Schedule’s metadata.name is the schedule’s name in the engine, which is half of the identity the engine claims each fire under, so that a fire runs once however often the engine evaluates its minute. Two Schedules of one seat or unit therefore never share a name, and a fire is never run twice.

The name is also the schedule’s session line. The engine keeps a schedule as a conversation of each seat that runs it: each fire continues, on that seat, the session the schedule’s previous fire left there, and is told how the earlier fires ended, for as long as the engine’s turn_engine.conversation_session.retention_days keeps that session (30 days unless the Company’s spec.engineConfig sets turn_engine), and every request of its run pays for that context. A Schedule of another name, which is what renaming one makes, starts its line afresh, and so does moving it between a seatRef and a unitRef; a seat that starts running it (a Lead schedule’s new lead, a new member of an Each one) starts it on its own seat. A Schedule deleted and created again under the same name, on the same seat or unit, continues the line while the retention still keeps its last session, and an edit to its prompt, schedule, timeZone or timeoutSeconds keeps it. A fire parked on a person’s question holds no later fire up: the next fires continue the line beside it.

A fire that comes due while its seat is paused is skipped, not queued.

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringSchedule
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec ScheduleSpecspec is the schedule’s desired state.Required: {}
status ScheduleStatusstatus is the schedule’s observed state.MinProperties: 1
Optional: {}

Underlying type: string

ScheduleFanOut is who runs a schedule that targets a unit. It maps onto Crewlet’s schedule target (Each is each, Lead is lead).

Validation:

  • Enum: [Each Lead]

Appears in:

FieldDescription
EachScheduleFanOutEach runs one task per agent seat directly in the unit:
never the seats of the units below it, and never a Human seat. Each
seat runs its own turn, so a slow one never holds up the others.
LeadScheduleFanOutLead runs one task as the unit’s lead: its leadRef, or,
unset, the lead it inherits from the units above it. It follows a
change of lead without a change to the Schedule.

ScheduleSpec is recurring work a seat or a unit owns: a task the engine hands its runner on a cron schedule, as a CronJob runs a Job. It renders to one entry of a Crewlet role’s or unit’s schedules, whose name is the Schedule’s metadata.name.

Appears in:

FieldDescriptionDefaultValidation
companyRef CompanyReferencecompanyRef names the Company this schedule belongs to. Immutable.Required: {}
target ScheduleTargettarget is the seat or the unit whose schedule this is.MinProperties: 1
Required: {}
schedule stringschedule is when the task fires: a standard cron expression of five
fields (minute, hour, day of month, month, day of week), such as
”30 9 * * 1-5”, evaluated in timeZone. When both the day of month and
the day of week are restricted, a day matches if either does. The
engine’s dry run checks each field’s values. Crewlet’s cron.
MaxLength: 256
MinLength: 9
Required: {}
timeZone stringtimeZone is the IANA time zone the schedule is evaluated in, such as
Asia/Tokyo. Unset is the Company’s spec.timeZone, which is UTC when
that is unset too. The engine refuses a zone it cannot load, and
Local, which would be whatever zone the engine’s host is set to.
Crewlet’s timezone.
MaxLength: 64
MinLength: 1
Pattern: ^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+)*$
Optional: {}
prompt stringprompt is the task the runner is handed each time the schedule fires,
such as “Post your standup: what shipped yesterday, what is next,
what blocks you.” Crewlet’s task.
MaxLength: 8192
MinLength: 1
Required: {}
suspend booleansuspend keeps the schedule in the company without firing it. Unset
is false. Crewlet’s enabled, inverted.
Optional: {}
timeoutSeconds integertimeoutSeconds caps one scheduled turn’s wall-clock time, the seat’s
executor run included: a run still working when it passes is ended,
and the turn starts no further round and ends failed. Unset is the
engine’s default, 1800 seconds, which leaves a slow ritual room for its
box’s start, its setup, its run and a review sent back once. A
schedule that fires more often than its turns take queues its fires
behind the turn, and once it ends runs the fires that waited as one
turn, the latest, recording the rest as superseded: it runs late, and
fewer times than it fires, for as long as its turns outlast its
period. So give one that fires every few minutes a timeoutSeconds
below its period. Crewlet’s timeout_seconds.
Minimum: 1
Optional: {}
catchUp booleancatchUp says whether an engine that starts after missing a fire runs
the most recent missed one, when it is recent enough (half the
schedule’s period, within the engine’s catch-up bounds); older misses
are never run. Unset is true. Crewlet’s catchup.
Optional: {}

ScheduleStatus is what the operator observed about a Schedule.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions are Accepted (the Company exists), ResolvedRefs (the seat
or unit it targets exists, and a seat is an Agent) and Applied (the
schedule is in the revision the engine runs).
MaxItems: 8
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}

ScheduleTarget is whose recurring work a schedule is: one seat’s, or a unit’s. It decides which entry of the company document the schedule is rendered into: the seat’s role, or the unit’s.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
seatRef LocalObjectReferenceseatRef names the Seat, in this namespace, whose schedule this is; it
always runs as that seat. The Seat must be an Agent: the engine runs
no turn for a person. Rendered into the seat’s role schedules.
Optional: {}
unitRef LocalObjectReferenceunitRef names the Unit, in this namespace, whose schedule this is;
fanOut says who in it runs it. A unit’s schedule is not inherited by
the units below it. Rendered into the unit’s schedules.
Optional: {}
fanOut ScheduleFanOutfanOut is who in the unit runs it. Unset is Each. Crewlet’s target.
The engine refuses a schedule that could never run while it is not
suspended: Each on a unit with no agent seat directly in it, and Lead
on a unit whose lead is a Human seat.
Enum: [Each Lead]
Optional: {}

SearchConsoleIntegration lets agent seats read and manage the company’s Google Search Console properties, their site verification and Indexing API notifications through the engine’s tools, each as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person adds to each property at the permission the seat may act with. It maps onto Crewlet’s integrations.search_console, which needs integrations.google_cloud: without the company’s Google Cloud Integration the engine’s dry run refuses it, Invalid on this Integration. It holds no credential, the engine creates nothing at Search Console, and Search Console delivers nothing to the engine, so the Integration’s provisioning is External and it has no webhook. An empty block is a setting of its own: every property an agent’s identity is added to.

Appears in:

FieldDescriptionDefaultValidation
sites string arraysites are the Search Console properties agents may be given, each
once, as Search Console writes it: a URL prefix with its scheme and
trailing slash (https://www.example.com/) or a domain
(sc-domain:example.com). Unset is every property an agent’s identity
is added to. Crewlet’s sites.
MaxItems: 1000
items:MaxLength: 2048
items:MinLength: 11
items:Pattern: ^(sc-domain:([a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?|https?://([a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?(:[0-9]\{1,5\})?/([A-Za-z0-9._~!&'()*+,;=:@%/-]*/)?)$
Optional: {}
approverRefs LocalObjectReference arrayapproverRefs name the Human Seats, in this namespace, an agent’s held
acts, the ones an administrator must approve, are routed to first. Only
an administrator answers one, at a fresh sign-in; unset asks every
administrator. Crewlet’s approvers, which names a seat by its handle.
MaxItems: 64
Optional: {}

Underlying type: string

SearchConsoleLevel is what a seat may do in each of its Search Console properties, least access first. It maps onto Crewlet’s level (Read read, Operate operate, Administer administer). Read reads search performance, sitemaps, URL inspection and verification, changing nothing; Operate adds submitting and removing sitemaps and Indexing API notifications; Administer adds asking an administrator to approve adding or removing a property, verifying a site and changing its owners, one each. Raising a seat to Operate or Administer needs a fresh sign-in on the dashboard. The permission a person gives the seat’s identity on each property is Google’s own ceiling beside it.

Validation:

  • Enum: [Read Operate Administer]

Appears in:

FieldDescription
Read
Operate
Administer

SearchConsoleSeatIntegration is a seat’s access to the company’s Search Console properties. It maps onto Crewlet’s role integrations.search_console and needs the company’s Search Console Integration. The seat signs in as its own Google growth identity, which the engine makes through the company’s Google Cloud Integration and a person adds to each property; the engine mints its tokens inside itself at use and holds every call to the seat’s level and sites, so no Seat names a Search Console credential.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat may reach Search Console. False turns its
Google growth identity off once no other Google growth product is on
for it. Crewlet’s enabled.
Required: {}
level SearchConsoleLevellevel is what the seat may do in each of its properties. Unset is Read.
Crewlet’s level.
Enum: [Read Operate Administer]
Optional: {}
sites string arraysites are the Search Console properties the seat may reach, as Search
Console writes each (https://www.example.com/ or
sc-domain:example.com), each within the Search Console Integration’s
sites where it lists them: Crewlet refuses another, which the engine’s
dry run reports as Invalid on the Seat. Required while the seat is on.
Crewlet’s sites.
MaxItems: 1000
items:MaxLength: 2048
items:MinLength: 11
items:Pattern: ^(sc-domain:([a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?|https?://([a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]\{0,61\}[a-z0-9])?(:[0-9]\{1,5\})?/([A-Za-z0-9._~!&'()*+,;=:@%/-]*/)?)$
Optional: {}

Seat is one seat of a company’s org chart: an AI agent the engine runs, or a person agents work with.

spec.paused pauses an agent seat while keeping it in the chart; Company’s spec.suspend stops the whole engine instead.

Unless spec.handle is set, the Seat’s metadata.name is its handle and must follow the handle’s rules: lowercase letters, digits and ’-’, starting with a letter or digit, at most 63 characters. The handle cannot change.

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringSeat
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec SeatSpecspec is the seat’s desired state.Required: {}
status SeatStatusstatus is the seat’s observed state.MinProperties: 1
Optional: {}

SeatContact is how agents reach a person: their accounts on the company’s surfaces, which tie what the person does there to their seat. It maps onto Crewlet’s role contact, one field for each of its keys but one (below).

Crewlet refuses two seats that claim one account, so a Seat claiming an account another Seat of the company already claims is reported as a Conflict. Each field is compared as Crewlet compares it: githubLogin, gitlabUsername and mattermostUsername without case, as GitHub, GitLab and Mattermost compare them; slackUserID and atlassianAccount exactly.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
slackUserID stringslackUserID is the person’s Slack member id, such as U0123ABCD.
Crewlet’s slack_user_id.
MaxLength: 64
MinLength: 1
Pattern: ^[A-Z0-9]+$
Optional: {}
mattermostUsername stringmattermostUsername is the person’s username on the company’s
Mattermost, such as jane.doe, written without the @: the name an
agent mentions them by and opens a direct message with, and the
sender an inbound post is attributed by. Crewlet’s
mattermost_user_id, which holds the username despite its name, and
never the 26-character user id. Mattermost’s own rule for a username
holds it: lowercase letters, digits, ’.’, ’-’ and ’_’, at most 64
characters, and none of the names Mattermost reserves (all, channel,
matterbot, system) nor here: a mention of all, channel or here
notifies the whole channel rather than the person.
MaxLength: 64
MinLength: 1
Pattern: ^[a-z0-9._-]+$
Optional: {}
atlassianAccount stringatlassianAccount is the person’s identity on the company’s Jira and
Confluence, one value for both: their account id on Atlassian Cloud,
such as 557058:f58131cb-b67d-43c7-b30d-6b58d40bd077 and never their
email address, and their username on a Data Center instance, such as
jane.doe. Webhooks name the person by it, so it attributes what they do
there to their seat, and agents assign and mention them by it.
Crewlet’s atlassian_account_id, which holds the username on Data
Center despite its name. Any value up to 255 characters without
whitespace is taken, since a Data Center username may hold almost any
character. Where the company reaches Jira or Confluence on Atlassian
Cloud, a value outside the form of an account id (letters, digits,
’_’, ’|’, ’:’ and ’-’, at most 128 characters) is applied and reported
on the Seat as ResolvedRefs=False with the reason NotAnAccountID.
MaxLength: 255
MinLength: 1
Pattern: ^\S+$
Optional: {}
githubLogin stringgithubLogin is the person’s GitHub login. Crewlet’s github_login.MaxLength: 39
MinLength: 1
Pattern: ^[A-Za-z0-9-]+$
Optional: {}
gitlabUsername stringgitlabUsername is the person’s GitLab username, written without the
@: assignments, review requests, mentions, and the sender an inbound
webhook is attributed by. Crewlet’s gitlab_username. GitLab’s own
rule for a username’s form holds it: letters, digits, ’_’, ’-’ and
’.’, at most 255 characters, not starting with ’-’ and not ending
with ’.’.
MaxLength: 255
MinLength: 1
Pattern: ^([A-Za-z0-9_.][A-Za-z0-9_.-]*[A-Za-z0-9_-]|[A-Za-z0-9_])$
Optional: {}

Underlying type: string

SeatCredentialField is which of a seat’s credentials at an integration whose account holds two: an Atlassian account’s Token or Email, a Scaleway API key’s SecretKey or AccessKey. It maps onto Crewlet’s seat_credentials[].field (Token TOKEN, Email EMAIL, SecretKey SECRET_KEY, AccessKey ACCESS_KEY).

Validation:

  • Enum: [Token Email SecretKey AccessKey]

Appears in:

FieldDescription
Token
Email
SecretKey
AccessKey

Underlying type: string

SeatCredentialKind is an integration whose per-seat credential a tool server can read. It maps onto Crewlet’s seat_credentials[].kind (Atlassian is atlassian, Cloudflare cloudflare, Datadog datadog, DigitalOcean digitalocean, Expo expo, GitHub github, GitLab gitlab, GoogleCloud google_cloud, Mattermost mattermost, Scaleway scaleway, Slack slack).

Validation:

  • Enum: [Atlassian Cloudflare Datadog DigitalOcean Expo GitHub GitLab GoogleCloud Mattermost Scaleway Slack]

Appears in:

FieldDescription
Atlassian
Cloudflare
Datadog
DigitalOcean
Expo
GitHub
GitLab
GoogleCloud
Mattermost
Scaleway
Slack

SeatCredentialSource says where one of a seat’s own credentials comes from: a Secret key, or the engine, which provisions it (see ProvisionedCredential).

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
secretKeyRef SecretKeyReferencesecretKeyRef selects the Secret key that holds the value.Optional: {}
provisioned ProvisionedCredentialprovisioned is a credential the engine mints for the seat’s account
at a vendor, under that vendor’s Integration with provisioning Engine.
Optional: {}

SeatEnvVar is a named credential of a seat delivered as an environment variable of its sandbox runs (a Seat’s spec.sandbox.env): from a Secret, or provisioned by the engine.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the variable’s name. It may not be one Crewlet sets in a box
itself, which Crewlet refuses in every company document:
CREWLET_GIT_ACCESS_FILE, CREWLET_GIT_URL, CREWLET_CHECK_REPO,
CREWLET_CHECK_SHA, CREWLET_CHECK_BASE, CREWLET_CHECK_NAME,
CREWLET_CHECK_ATTEMPT, CREWLET_CHECK_API or CREWLET_CHECK_SUMMARY
(Crewlet’s ReservedSandboxEnv).
MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Required: {}
valueFrom SeatCredentialSourcevalueFrom is where the value comes from.MinProperties: 1
Required: {}

SeatIntegrations is a seat’s own identity and access on the company’s integrations, one block per vendor: whether the seat is on it, what it may do there in the vendor’s own terms, and, where the vendor has one, the scope it may do it in. A vendor without a block is off for the seat. The credential the engine mints for a seat’s account is sealed under a name the engine gives it for the seat, and the engine hands it to the vendor’s tool server itself, so spec.mcp holds none for these vendors.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
slack SlackSeatIntegrationslack is the seat’s own Slack app.Optional: {}
github GitHubSeatIntegrationgithub is the seat’s identity and access on GitHub.Optional: {}
gitlab GitLabSeatIntegrationgitlab is the seat’s account and access on GitLab.Optional: {}
mattermost MattermostSeatIntegrationmattermost is the seat’s own Mattermost bot.Optional: {}
jira JiraSeatIntegrationjira is the seat’s access on Jira.Optional: {}
confluence ConfluenceSeatIntegrationconfluence is the seat’s access on Confluence.Optional: {}
datadog DatadogSeatIntegrationdatadog is the seat’s service account on Datadog.Optional: {}
cloudflare CloudflareSeatIntegrationcloudflare is the seat’s own account API token on Cloudflare.Optional: {}
expo ExpoSeatIntegrationexpo is the seat’s own robot user on Expo.Optional: {}
digitalocean DigitalOceanSeatIntegrationdigitalocean is the seat’s own personal access token on DigitalOcean.Optional: {}
scaleway ScalewaySeatIntegrationscaleway is the seat’s own IAM application on Scaleway.Optional: {}
aws AWSSeatIntegrationaws is the seat’s own IAM role on AWS.Optional: {}
googleCloud GoogleCloudSeatIntegrationgoogleCloud is the seat’s own service account on Google Cloud.Optional: {}
googleAnalytics GoogleAnalyticsSeatIntegrationgoogleAnalytics is the seat’s access to Google Analytics 4 properties.Optional: {}
admob AdMobSeatIntegrationadmob is the seat’s access to AdMob accounts.Optional: {}
adsense AdSenseSeatIntegrationadsense is the seat’s access to AdSense accounts.Optional: {}
appStoreConnect AppStoreConnectSeatIntegrationappStoreConnect is the seat’s access to App Store Connect, through the
engine’s tools, signed with the seat’s own team key.
Optional: {}
appleAds AppleAdsSeatIntegrationappleAds is the seat’s access to Apple Ads, through the engine’s
tools.
Optional: {}
metaAds MetaAdsSeatIntegrationmetaAds is the seat’s access to Meta Ads, through the engine’s tools.Optional: {}
googleAds GoogleAdsSeatIntegrationgoogleAds is the seat’s access to Google Ads accounts.Optional: {}
searchConsole SearchConsoleSeatIntegrationsearchConsole is the seat’s access to Search Console properties.Optional: {}
googlePlay GooglePlaySeatIntegrationgooglePlay is the seat’s access to Google Play apps.Optional: {}

SeatIntegrationsStatus is the addresses a seat’s vendor apps must use.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
slack SlackSeatStatusslack is the Slack side of the seat.MinProperties: 1
Optional: {}
github GitHubSeatStatusgithub is the GitHub side of the seat.MinProperties: 1
Optional: {}

Underlying type: string

SeatKind is whether a seat is an AI agent or a person. It maps onto Crewlet’s role kind (Agent is agent, Human is human).

Validation:

  • Enum: [Agent Human]

Appears in:

FieldDescription
AgentSeatKindAgent is an AI agent: the engine runs it, with its own inbox,
models and tools.
HumanSeatKindHuman is a person: part of the chart (a lead, an escalation
target, a colleague to mention) whom the engine never runs.

SeatLLM is the model providers a seat runs on, one fallback chain per phase of its work: when every key of the first provider is cooling down, the next is tried. A chain may instead name one fleet of the Company’s (spec.llm.fleets) alone, whose members Crewlet balances in place of a hand-ordered fallback. It maps onto Crewlet’s per-phase llm mapping. A phase left unset uses the default chain; a seat with no default chain runs on the Company’s default-fleet once it lists a member, else on the first provider of the Company’s spec.llm.order alone, with no fallback.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
default LLMProviderReference arraydefault is the chain of every phase not set below, and of the seat’s
executor, which does its work. Crewlet runs the executor as the
agentic run of the chain’s first member that is not sitting out its
spent plan on the node, in a box on the engine pod that holds the seat,
and a launch falls back along the chain to the next member; every
harness the API offers runs one. Crewlet’s default.
MaxItems: 8
MinItems: 1
Optional: {}
review LLMProviderReference arrayreview is the chain of the reviewer that judges the executor’s work.
Crewlet’s review.
MaxItems: 8
MinItems: 1
Optional: {}
subagent LLMProviderReference arraysubagent is the chain of the short-lived workers the seat delegates
to. Crewlet’s subagent.
MaxItems: 8
MinItems: 1
Optional: {}
auxiliary LLMProviderReference arrayauxiliary is the chain of the cheap model used for reflection and
summaries. Crewlet’s auxiliary.
MaxItems: 8
MinItems: 1
Optional: {}
judge LLMProviderReference arrayjudge is the chain of the model that decides whether a turn that ran
out of rounds may have more. Crewlet’s judge.
MaxItems: 8
MinItems: 1
Optional: {}
triage LLMProviderReference arraytriage is the chain of the model that decides what a message to the
seat is while one of its runs works, when it comes from somebody other
than the run’s requester: one bounded call that only names a label,
so a cheap, fast model serves it. Crewlet’s triage.
MaxItems: 8
MinItems: 1
Optional: {}

SeatPauseStatus is a seat’s pause, as the engine reports it.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
pausedBy stringpausedBy is who paused the seat, as Crewlet records the author of a
write: the seat of the person who paused it, or token: for a
token no seat is bound to. A pause the operator took reads
token:operator.
MaxLength: 256
MinLength: 1
Optional: {}
pausedAt TimepausedAt is when the seat was paused, to the second.Optional: {}
reason stringreason is why, in the pauser’s words.MaxLength: 500
MinLength: 1
Optional: {}
stopRunning booleanstopRunning is whether the pause also ended the turn the seat was on.Optional: {}

SeatPlacement is where a seat runs.

Appears in:

FieldDescriptionDefaultValidation
pool stringpool is the pool of pods that runs the seat: data, the company’s data
pods, or the name of one of the Company’s spec.topology.seatPools.
The seat is pinned to the pool with Crewlet’s role.placement, which
the engine never widens: while the pool runs no pod, the seat runs
nowhere and its messages wait for one.
MaxLength: 20
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Required: {}

SeatPlacementStatus is where the engine runs a seat.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
pool stringpool is the pool of pods that runs the seat: spec.placement.pool, or
the Company’s spec.topology.defaultSeatPool. The seat is rendered with
role.placement.labels {crewlet.ai/pool: }, which only the pool’s
pods carry, or, in a PerSeat pool, {crewlet.ai/seat: }, which
only the seat’s own pods carry.
MaxLength: 20
MinLength: 1
Optional: {}
workload stringworkload is the name of the StatefulSet whose pods may run the seat:
the data pods’, the Shared pool’s, or the seat’s own in a PerSeat
pool.
MaxLength: 63
MinLength: 1
Optional: {}
node stringnode is the engine node, a pod’s name, that holds the seat’s lease
and runs it, as the engine’s GET /fleet last reported. Unset while no
node holds it.
MaxLength: 64
MinLength: 1
Optional: {}

SeatPool is a set of stateless pods that run seats: they hold no data, join the company’s event stream through the data pods, and keep a scratch store they delete at every start. A seat runs in it when its Seat’s spec.placement.pool names it, or when it is the Company’s defaultSeatPool and the Seat names no pool. The class’s spec.seatPools.policy must be Allowed.

The operator runs a Shared pool as the StatefulSet -seats--, and each seat of a PerSeat pool as -seat-- (the hash keeps the name the Company’s own in a namespace another Company shares), started only once the data pods are ready and rolled only after them. The pods serve their probes alone, on the engine’s port: a pod is ready once its engine has joined the company’s fleet and may claim seats, and a rollout replaces the next pod only then.

Appears in:

FieldDescriptionDefaultValidation
name stringname identifies the pool: a DNS label of at most 20 characters, other
than data, which is the data pods’ pool. It names the pool’s pods and
is the value of the crewlet.ai/pool label a Shared pool’s seats are
pinned to.
MaxLength: 20
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Required: {}
mode SeatPoolModemode is how the pool runs its seats.SharedEnum: [Shared PerSeat]
Optional: {}
replicas integerreplicas is, for a Shared pool, how many pods it runs, 0 to 100: at 0
its seats run nowhere, and their messages wait for a pod. For a
PerSeat pool it is how many pods it runs for each of its seats, 1 or
2.
1Maximum: 100
Minimum: 0
Optional: {}
maxConcurrentTurns integermaxConcurrentTurns is how many turn segments one of the pool’s pods
runs at once in the engine (a seat’s onboarding pass, the launch of its
executor, the collection of its run and the review): Crewlet’s
node.max_concurrent. An executor run is not one: its turn gives the
place back while the run works, and a seat runs one at a time, so the
seats a pod holds bound the Direct runs it has running, beside those
parked on a person’s question, whose processes are stopped. Unset
takes the class’s seatPools.defaults.
Minimum: 1
Optional: {}
terminationGracePeriodSeconds integerterminationGracePeriodSeconds is how long one of the pool’s pods may
take to stop, finishing the turn segments the engine runs in its own
process (a seat’s launch, the collection of its run, the review, a
delegated worker): the engine puts no bound of its own on that drain,
so it must cover the longest of them, and 150 s beside it for the
engine’s own stop after the drain, which can take about 145 s on a pod
that runs seats. Beside its wait for turns the drain saves the session
of each Direct run whose session moved, for at most 30 s, which the
longest segment holds wherever it is 30 s or more. A seat’s executor
run is not waited for: a Direct one on the pod ends with it, and its
box with the pod’s sandboxes volume, and Crewlet carries its round on
in a fresh run, continuing its newest save where one landed, once a
pod of the same name is back or once the pod has been gone for
spec.sandbox.hostGraceSeconds (launch_node_gone). Unset takes the
class’s seatPools.defaults, else 450, a five-minute segment’s.
Maximum: 3600
Minimum: 30
Optional: {}

SeatPoolDefaults sizes the pods of a seat pool that does not size its own, and the compute of every seat pod, which the class alone sets: a Company’s pools choose how many pods they run, within maxPods, and the class what each of them may take, as it does for the data pods.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
maxConcurrentTurns integermaxConcurrentTurns is how many turn segments one seat pod runs at once
in the engine (a seat’s onboarding pass, the launch of its executor,
the collection of its run and the review): Crewlet’s
node.max_concurrent. Unset takes the engine’s default, 32. A seat runs
one turn at a time, so a pod never runs more at once than it holds
seats; and an executor run is not a segment, as its turn gives the
place back while the run works, so the seats a pod holds bound the
Direct runs it has running too, beside those parked on a person’s
question, whose processes are stopped.
Minimum: 1
Optional: {}
resources ResourceRequirementsresources are the compute resources of every seat pod’s engine
container, sized as data.resources says of a data pod’s: the engine,
its providers’ harness processes, a Direct executor run for each agent
seat the pod holds that runs Direct, the stopped processes of each
Direct run parked on a person’s question, and, one at a time, the
export of a Direct OpenCode run’s session Crewlet saves or packs, up
to about ten times the session at its peak; a save waits while the
container lacks the room. Unset sets none.
Optional: {}
terminationGracePeriodSeconds integerterminationGracePeriodSeconds is how long a seat pod may take to stop.
A seat pod finishes the turn segments it runs in its own process
before it exits, with no bound of its own, and its own stop can take
about 145 s after them, so unset is 450 seconds: a long segment of five
minutes and the 150 s Crewlet asks for beside it on a pod that runs
seats, as for a data pod less its 5 s preStop sleep, which a seat pod
has none of, rather than the Kubernetes default of thirty seconds.
Beside its wait for turns the drain saves the session of each Direct
run whose session moved, for at most 30 s, which the segment holds
wherever it is 30 s or more. A seat’s executor run is not waited for:
a Direct one on the pod ends with it, its box with the pod’s sandboxes
volume, and Crewlet carries its round on in a fresh run, continuing its
newest save where one landed.
Maximum: 3600
Minimum: 30
Optional: {}
scratchSizeLimit QuantityscratchSizeLimit caps the emptyDir a seat pod keeps its scratch store in,
and its /tmp and HOME: a store the engine deletes at every start, its
native library (about 20 MB, extracted at every start), and what the
processes it runs write outside a box, as data.scratchSizeLimit says of a
data pod, the stdio tool servers’ packages and files and what a seat’s
Direct executor run writes to /tmp or the engine’s home outright among
them; and the executor sessions Crewlet keeps and saves of the pod’s
runs while each is uploaded, held to a room of 481 MiB a pod, as
data.scratchSizeLimit says. The 561Mi minimum holds the library and that
room beside a small scratch store and the files of a few small
processes, not a tool server’s packages.
A pod that writes more is evicted, with every run and turn on it. Unset
is 10Gi.
It does not count the live output of the harnesses the engine runs on
the pod, which the volume holds beside what it counts: Crewlet captures
each one’s output into files there and unlinks them as the harness
starts, 64 MiB of room as a call starts and up to 128 MiB while it runs,
for each of a provider’s maxConcurrent processes, and the kubelet,
which measures the volume by the files it finds, counts none of it.
Crewlet bounds them itself; give the node’s disk room for them above
the limit.
Optional: {}
sandboxSizeLimit QuantitysandboxSizeLimit caps the emptyDir every seat pod keeps its sandboxes
in, at /var/lib/crewlet-sandboxes, apart from its scratch volume: the
boxes Crewlet makes on the pod itself for the executor runs it places
there, as data.sandboxSizeLimit says of a data pod: one for each seat
the pod holds whose run is running, and one for each run parked on a
person’s question. A box holds an OpenCode save’s staging too, the
session’s export and its gzip, one at a time. A pod whose boxes write
more is evicted, with every run and turn on it. Unset is 20Gi. It
bounds the boxes alone:
what a run writes outside its box counts against scratchSizeLimit.
Optional: {}

Underlying type: string

SeatPoolMode is how a seat pool runs the seats placed in it.

Validation:

  • Enum: [Shared PerSeat]

Appears in:

FieldDescription
SharedSeatPoolShared runs replicas pods that share the pool’s seats between
them: each takes an even share, and a pod that stops hands its seats
to the others.
PerSeatSeatPoolPerSeat runs replicas pods for each seat placed in the pool,
each holding that seat alone. It needs the class’s
seatPools.allowPerSeat.

Underlying type: string

SeatPoolPolicy is whether a class’s companies may run seats on pods of their own, outside the data pods.

Validation:

  • Enum: [Forbidden Allowed]

Appears in:

FieldDescription
ForbiddenSeatPoolsForbidden runs every seat on the data pods. A Company of the
class may declare no spec.topology.seatPools.
AllowedSeatPoolsAllowed lets a Company declare seat pools, and opens the
leaf listener its seat pods join the company’s event stream through
on every data pod of the class, from the data pod’s first start, so
that a company adding its first pool restarts nothing.

SeatPoolSettings is whether, and how far, a class’s companies may run seats on stateless pods of their own (a Company’s spec.topology.seatPools). A seat pod holds no data: it joins the company’s event stream as a NATS leaf of the data pods, keeps a scratch store it deletes at every start, and runs the seats placed in its pool.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
policy SeatPoolPolicypolicy is whether the class’s companies may declare seat pools.
Changing it restarts every data pod of the class, which opens or
closes the leaf listener.
ForbiddenEnum: [Forbidden Allowed]
Optional: {}
allowPerSeat booleanallowPerSeat lets a Company declare a PerSeat pool, which runs one
pod (or two, a warm standby) for each seat placed in it. Each costs a
pod, and every pod’s work grows with the number of seats of the
company, so it is off by default and meant for the few seats that
need a pod to themselves. It isolates a seat’s compute and its
failures, not its credentials: every pod of a company can read the
company’s whole secret store.
Optional: {}
maxPods integermaxPods is the most seat pods a Company of the class may run, all of
its pools together: each Shared pool’s replicas, and each PerSeat
pool’s replicas for every seat placed in it. The data pods are not
counted. Required with policy Allowed: a class’s companies size their
own pools, and only this bounds how many seat pods a company of the
class runs.
Minimum: 1
Optional: {}
defaults SeatPoolDefaultsdefaults size the pods of a pool that does not size its own.MinProperties: 1
Optional: {}
runtimeClassName stringruntimeClassName is the RuntimeClass the seat pods run with, in place
of podTemplate.spec.runtimeClassName, which the data pods keep: a
sandboxed runtime such as gVisor for the pods that run the seats’
executor boxes, the tenant’s code, while the data pods, which hold
the company’s stream and serve its API, run on the node’s own. The
operator only names it: the RuntimeClass, and its runtime on the
nodes the class schedules onto, are the platform’s. Seats not placed
in a pool run on the data pods, under their runtime.
MaxLength: 253
MinLength: 1
Optional: {}

SeatPoolStatus is the state of one seat pool’s pods.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the pool’s name.MaxLength: 20
MinLength: 1
Required: {}
mode SeatPoolModemode is how the pool runs its seats.Enum: [Shared PerSeat]
Optional: {}
replicas integerreplicas is the number of the pool’s pods, every seat’s together for
a PerSeat pool.
Minimum: 0
Optional: {}
readyReplicas integerreadyReplicas is the number of the pool’s pods that are ready.Minimum: 0
Optional: {}
updatedReplicas integerupdatedReplicas is the number of the pool’s pods that run the
current pod template.
Minimum: 0
Optional: {}
seats integerseats is the number of agent seats placed in the pool.Minimum: 0
Optional: {}

SeatSandbox is what a seat’s executor box reads beyond the Company’s spec.sandbox: its own provisioning and environment, the tool servers it is given, and the bounds of one run. It maps onto Crewlet’s role sandbox. Nothing here picks the box’s harness: every agent seat’s executor is its harness’s own run on the provider it launches on, so a seat with no spec.sandbox runs on the Company’s settings alone. An empty one says nothing, and the API refuses it.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
pauseTTLSeconds integerpauseTTLSeconds is how long the seat’s box stays paused while its run
waits on a person. Unset takes the Company’s default; 0 never pauses.
Crewlet’s pause_ttl_seconds.
Minimum: 0
Optional: {}
maxTurns integermaxTurns caps the agentic rounds of one of the seat’s executor runs.
Unset takes the Company’s spec.sandbox.defaultMaxTurns, which leaves
runs uncapped unless it is set; 0 is uncapped, lifting a Company’s cap
for this seat. At most 1000, Crewlet’s own ceiling: a capped run keeps
a record of every request in its box; work that needs more is split,
or left uncapped with 0. Crewlet’s max_turns.
Maximum: 1000
Minimum: 0
Optional: {}
maxConcurrentRuns integermaxConcurrentRuns caps how many of the seat’s executor runs hold it at
once, at most one per conversation. Unset is two at once; below 1 is
refused, since a seat that can hold no run could take no turn, so the
zero value is “unset” and needs no pointer. Crewlet’s
max_concurrent_runs.
Minimum: 1
Optional: {}
mcpServerRefs LocalObjectReference arraymcpServerRefs name the MCPServers the seat’s executor box is given,
beside its tool bridge, which every executor box is given. Each must
reach the seat (the MCPServer’s access): the engine refuses one that
does not, which its dry run reports as Invalid on the Seat. An entry
naming one that signs in with OAuth (its spec.oauth) holds the
company’s document (Accepted=False with Conflict), as Crewlet refuses
it: a box is handed a server’s credentials once, at its launch, and
cannot renew the access token, so it reaches that server’s tools
through its tool bridge instead. Crewlet’s mcp.servers.
MaxItems: 16
Optional: {}
env SeatEnvVar arrayenv is the environment of the seat’s executor runs, for the external
tokens its work needs: from Secrets, or provisioned by the engine,
such as the GitLab token a provisioning Integration mints for the
seat’s account, which the engine gives its gitlab tool server too, so
both are one token. A run gets
its provider’s whole env beneath this, so a variable named here wins
over the provider’s of that name. A ClaudeCode sign-in here
(CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or a
CLAUDE_CODE_USE_* toggle) keeps the provider’s own sign-in out of the
box, its token or key and every sign-in in its env, a gateway’s
bearer token or a cloud switch, while the rest of its env, such as a
gateway’s address, still reaches the run: a seat meant to bypass the
gateway names ANTHROPIC_BASE_URL here itself. So does a Copilot
sign-in here (COPILOT_GITHUB_TOKEN, GH_TOKEN or GITHUB_TOKEN). The
seat’s own credential for a tool, provisioned or a Secret key its
tool server is given too, is refused under a name its executor’s
harness signs in by. A run that goes without
the value is given the provider’s sign-in as one with no sign-in here
is. It may not set a variable Crewlet sets in a box itself, which
Crewlet refuses in every company document, and nor may a setup step’s
env: CREWLET_GIT_ACCESS_FILE and CREWLET_GIT_URL, the file holding a
box’s credential on Gitlet, the engine’s own git host, and the base its
clones and pushes reach; and CREWLET_CHECK_REPO, CREWLET_CHECK_SHA, CREWLET_CHECK_BASE,
CREWLET_CHECK_NAME, CREWLET_CHECK_ATTEMPT, CREWLET_CHECK_API and
CREWLET_CHECK_SUMMARY, what a check’s box is told of the check it runs
(Crewlet’s ReservedSandboxEnv). No box of a company the operator runs
is given them, since the operator does not offer Gitlet, but the names
are the engine’s all the same. Crewlet’s env, a credential position.
MaxItems: 32
Optional: {}
optionalKeys string arrayoptionalKeys names variables of env whose value may go missing. An
executor run starts without a value that does not resolve, a Secret
that does not exist, holds no such key or holds an empty value, or a
provisioned value nothing has minted yet, whether or not it is listed
here: the run is the seat’s turn itself, and refusing it would fail
every message the seat could answer meanwhile. Unlisted, the engine
logs each such value as a gap of the run (sandbox_env_unresolved), and
the operator reports an empty one on the Seat; listed, the variable is
left out quietly, as an absence that is expected, but for a value an
Integration mints for the seat, which is logged as awaited whatever
this says. A missing Secret or key under a listed variable is then no
failure of the Seat’s references and holds nothing back. Under the
Enforce policy the operator also takes the value it pushed for it out
of the engine’s secret store, and has the engine read the store again
whether or not the document can be applied, so no run starts with a
deleted Secret’s value, but in a revision the engine runs that reads
the key as required (one from before the key was listed) or whose
reading the operator does not know (another document somebody else
activated), which keeps the value until the next document runs, and
that one is activated once with it and at once again without it; a
Secret key that is also read where it is required holds the document
while it is missing, and keeps the value it had in a revision the
engine runs that requires it too until the document applies. env wins
over a setup step’s variable of the same name, and so does this list
over the step’s optionalKeys for it. Crewlet’s optional_keys.
MaxItems: 32
items:MaxLength: 128
items:MinLength: 1
items:Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Optional: {}
setup SandboxSetupStep arraysetup is the seat’s own provisioning of its executor box, applied
after the Company’s. Crewlet’s setup.
MaxItems: 16
Optional: {}

SeatSpec is one seat of a company: an AI agent or a person. It renders to one entry of Crewlet’s roles, nested under its unit’s.

Appears in:

FieldDescriptionDefaultValidation
companyRef CompanyReferencecompanyRef names the Company this seat belongs to. Immutable.Required: {}
handle stringhandle is the seat’s canonical slug. Unset is the Seat’s
metadata.name. Crewlet derives the seat’s identity, and with it the
seat’s memory, from the company name and the handle, so the handle
cannot be changed; a Seat deleted and created again with the same
handle gets its memory back. Crewlet’s handle.
MaxLength: 63
MinLength: 1
Pattern: ^[a-z0-9][a-z0-9-]*$
Optional: {}
kind SeatKindkind is whether the seat is an AI agent or a person. Crewlet’s kind.AgentEnum: [Agent Human]
Optional: {}
displayName stringdisplayName is the seat’s name as people read it, such as “Ana
(Platform Engineer)”. Unset is the handle. Crewlet’s name. It is for
reading only: one seat names another, a unit its lead and a seat what
it manages, by the handle, so two Seats may share a displayName.
MaxLength: 256
MinLength: 1
Optional: {}
email stringemail is the seat’s email address. Crewlet’s email. Each seat has its
own: the engine finds a seat by its address, compared lower-cased and
with any plus tag dropped, so a Seat whose address another Seat’s
matches that way is reported as a Conflict.
MaxLength: 254
MinLength: 3
Pattern: ^[^@\s]+@[^@\s]+$
Optional: {}
unitRef LocalObjectReferenceunitRef names the Unit, in this namespace, the seat belongs to. Unset
is a seat outside every unit, such as a chief executive.
Optional: {}
goal stringgoal is what the seat is for; it reaches the seat’s prompt. Crewlet’s
goal.
MaxLength: 2048
MinLength: 1
Optional: {}
backstory stringbackstory is who the seat is; it reaches the seat’s prompt. Crewlet’s
backstory.
MaxLength: 8192
MinLength: 1
Optional: {}
responsibilities string arrayresponsibilities are what the seat owns. Crewlet’s
responsibilities.
MaxItems: 32
items:MaxLength: 1024
items:MinLength: 1
Optional: {}
behavioralGuidelines string arraybehavioralGuidelines are how the seat should work. Crewlet’s
behavioral_guidelines.
MaxItems: 32
items:MaxLength: 1024
items:MinLength: 1
Optional: {}
manages ManagedReference arraymanages names the seats and units this seat manages; a unit stands
for every seat in it and below it. Crewlet’s manages, which names a
Seat by its handle and a Unit by its metadata.name, the Unit’s key; a
key that is also a seat’s handle reads as the seat, so a Unit named so
is refused here as a Conflict.
MaxItems: 64
Optional: {}
workers string arrayworkers narrows which of the company’s delegate templates (the
workers block of the Company’s engineConfig) the seat may use, by the
templates’ names: a lowercase letter or digit, then lowercase letters,
digits, ’_’ and ’-’. Unset is every one. Crewlet’s workers.
MaxItems: 32
items:MaxLength: 128
items:MinLength: 1
items:Pattern: ^[a-z0-9][a-z0-9_-]*$
Optional: {}
tokenBudget TokenBudgettokenBudget caps the tokens this seat may spend per window, on top of
the Company’s caps. Crewlet refuses a window below
turn_engine.executor_min_budget_tokens (65000 unless the Company’s
spec.engineConfig sets turn_engine) on an Agent seat: an executor
launch needs that much of the window left, so the seat would never
launch one. The refusal comes from the engine’s dry run, Invalid on
the Seat. Crewlet’s token_budget.
MinProperties: 1
Optional: {}
llm SeatLLMllm is the model providers the seat runs on.MinProperties: 1
Optional: {}
learningEnabled booleanlearningEnabled overrides the company’s learning setting for this
seat: false stops reflection after the seat’s turns. Unset inherits.
Crewlet’s learning_enabled.
Optional: {}
mcp MCPCredentials arraymcp are the seat’s own tool-server credentials, which make it act as
itself on each server, and its own settings, such as the channel cache
of slack-mcp-server, which no other seat may share. They are merged
over its unit’s, per variable. One entry per server, keyed by its
name. A credential of a vendor the engine provisions for the company
(GitLab or Mattermost under provisioning Engine, Datadog, Cloudflare,
Expo, Scaleway, Google Cloud, an Atlassian organization) is never given here: the
engine hands the seat’s own to that vendor’s server itself, and refuses
one given here, which the engine’s dry run reports as Invalid on the
Seat. A credential given here is the seat’s alone: Crewlet refuses a
Secret key another seat or an Integration names too. An entry holds
values for a server that reaches the seat (the MCPServer’s access) and
grants nothing: one for a server that does not reach it is refused the
same way, unless the server is named github, gitlab, datadog,
atlassian, jira or confluence, which Crewlet reads itself. Crewlet’s
mcp_env, a credential position.
MaxItems: 16
Optional: {}
mcpLimits MCPLimit arraymcpLimits narrow the tool servers granted to this seat: a server
turned off for it, a tool held at Approve or Blocked. One entry per
server, keyed by its name. They never widen a grant: the seat is held
to the strictest of its own limits, every enclosing unit’s and the
MCPServer’s own. Agent seats only. Crewlet’s mcp_limits, which the
engine lets the seat’s lead narrow and only an administrator lift.
MaxItems: 16
Optional: {}
sandbox SeatSandboxsandbox is the seat’s own settings for its executor’s box, which runs
whether or not it is set. Unset takes the Company’s spec.sandbox alone.
Agent seats only. Crewlet’s sandbox.
MinProperties: 1
Optional: {}
placement SeatPlacementplacement is where the seat runs. Unset runs it in the Company’s
spec.topology.defaultSeatPool.
Optional: {}
paused booleanpaused says whether the seat may take work. True pauses it: it starts
no new turn, the mail it is sent waits on its inbox in order, and its
schedules’ fires are skipped rather than queued; the turn it is on
finishes first unless stopRunning is set. False resumes it, and what
waited is delivered first. Unset leaves the seat’s pause to the people
who run the company in the engine’s dashboard: the operator reports a
pause they take, and never lifts it.
A pause is not part of the company document. Crewlet keeps it in its
coordination store, changed through its operator catalogue’s
pause_seat and resume_seat tools, which the operator calls under the
Company’s Enforce policy whenever the seat’s pause differs from this
field; under Observe and Seed it only reports the difference.
Optional: {}
pauseReason stringpauseReason is why the seat is paused, shown on the seat and in its
feed in the engine. Only with paused true. The engine keeps the
reason a pause was taken with, so a reason changed while the seat
stays paused shows from the seat’s next pause on. Crewlet’s pause
reason.
MaxLength: 500
MinLength: 1
Optional: {}
stopRunning booleanstopRunning ends the seat’s running work when it is paused, rather
than letting it finish: the turn it is on at its next round, and its
executor run, launching or running, at once, its tool bridge closed,
what it spent charged and its box reclaimed. What was stopped is not
run again, and the engine records the stop as the operator’s. A run
parked on a person’s question stays parked behind the pause. Only with
paused true. Setting it on a seat already paused stops its running
work then; unsetting it changes nothing, since a stopped turn stays
stopped. Crewlet’s pause stop_running.
Optional: {}
integrations SeatIntegrationsintegrations is the seat’s own identity on the company’s
integrations.
MinProperties: 1
Optional: {}
project stringproject is the tracker project a seat outside every unit owns, by its
key; a seat in a unit takes its unit’s. Crewlet requires a container
key to be an upper-case letter followed by 1 to 9 upper-case letters or
digits, such as LEAD. Crewlet’s project.
MaxLength: 10
MinLength: 2
Pattern: ^[A-Z][A-Z0-9]\{1,9\}$
Optional: {}
space stringspace is the knowledge container a seat outside every unit owns, by
its key, which follows the same rule as project; a seat in a unit
takes its unit’s. Crewlet’s space.
MaxLength: 10
MinLength: 2
Pattern: ^[A-Z][A-Z0-9]\{1,9\}$
Optional: {}
contact SeatContactcontact is how agents reach the person in a Human seat on a vendor’s
chat surface or tool, and how what the person does there reaches the
engine as theirs. It applies to Human seats only, and is optional: a
person who works only through the engine’s dashboard has no account to
name, and signs in on the seat through the engine’s own identity
directory. On a company that talks on Slack or Mattermost (an
Integration of either, or a seat’s Slack app) the engine warns of a
Human seat with no account there, a slackUserID or a
mattermostUsername, since nothing addressed to it there reaches
anybody; a GitHub, GitLab or Atlassian account does not count, and the
operator records the warning as an EngineWarnings event on the
Company. On Chatlet, which a company with neither talks on, the person
reads the rooms on the dashboard as their seat, and nothing is warned.
MinProperties: 1
Optional: {}
availability stringavailability tells colleagues of a Human seat when to expect an
answer, such as “CET business hours”. Crewlet’s availability.
MaxLength: 256
MinLength: 1
Optional: {}

SeatStatus is what the operator observed about a Seat.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions are Accepted (the Company exists, and no other Seat has the
handle, the email or a contact account; Conflict names the other),
ResolvedRefs (the unit, the providers, the tool servers and every
Secret key exist), Applied (the seat is in the revision the engine
runs), and on an Agent seat Ready and, once the engine runs it, Paused
(whether the engine holds it paused, and whether that is what
spec.paused asks). Ready is True, LeaseHeld, while an engine node holds
the seat’s lease and runs it, naming the provider its executor runs on
and the pod it runs in; False while none does (Unplaced, or
PoolNotFound).
MaxItems: 8
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}
handle stringhandle is the seat’s handle: spec.handle, or the metadata.name.MaxLength: 63
MinLength: 1
Optional: {}
seatID stringseatID is the seat’s identity in the engine, derived from the company
name and the handle, so that callers need not derive it themselves.
Unset for a Human seat, which the engine does not run and gives no
identity, and for a seat whose handle another Seat derives too.
MaxLength: 36
MinLength: 36
Optional: {}
placement SeatPlacementStatusplacement is where the engine runs the seat. Unset for a Human seat,
which the engine does not run.
MinProperties: 1
Optional: {}
integrations SeatIntegrationsStatusintegrations is the addresses the seat’s vendor apps must use. Unset
for a Human seat, which has no vendor apps of its own.
MinProperties: 1
Optional: {}
pause SeatPauseStatuspause is the seat’s pause while the engine holds it paused, whoever
paused it: the operator, for spec.paused, or a person in the engine’s
dashboard. Unset while the seat takes work.
MinProperties: 1
Optional: {}

Underlying type: string

SecondFactor is whether the companies of a class must require a second factor of a person signing in with a password, or may let them sign in with the password alone. It maps onto Crewlet’s api.auth.limits.second_factor (Required is required, Optional is optional).

Validation:

  • Enum: [Required Optional]

Appears in:

FieldDescription
RequiredSecondFactorRequired holds every company of the class to a second
factor: everyone who signs in with a password also gives a code from an
authenticator app, and a person without one sets it up at their first
sign-in. A company’s spec.signIn.requireSecondFactor false is refused.
It is Crewlet’s default.
OptionalSecondFactorOptional lets a company of the class choose, with its
spec.signIn.requireSecondFactor, to let people sign in with a password
alone. A company that says nothing still requires one.

SecretEnvVar is a named credential delivered as an environment variable, such as a harness’s model key. Crewlet treats every value in the positions that use this type as a credential, so a literal value is not accepted: the value always comes from a Secret.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the variable’s name.MaxLength: 128
MinLength: 1
Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Required: {}
valueFrom SecretValueSourcevalueFrom is the Secret key the value is read from.Required: {}

SecretKeyReference selects one key of a Secret in the referring object’s namespace. The operator reads the value when it renders the company and pushes it into the engine’s encrypted secret store; the value itself never appears in the company document, in a pod template or in any status.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the metadata.name of the Secret.MaxLength: 253
MinLength: 1
Required: {}
key stringkey is the key within the Secret’s data.MaxLength: 253
MinLength: 1
Pattern: ^[-._a-zA-Z0-9]+$
Required: {}

SecretReference names a whole Secret in the referring object’s namespace. It is used where one credential is several values that are always issued together (a Slack app’s bot token and signing secret, for example); the field that holds the reference documents the keys the Secret must carry.

Appears in:

FieldDescriptionDefaultValidation
name stringname is the metadata.name of the Secret.MaxLength: 253
MinLength: 1
Required: {}

SecretValueSource says where a credential’s value comes from. It has one member today; it is a struct so that a second source can be added without reshaping every list that carries credentials.

Appears in:

FieldDescriptionDefaultValidation
secretKeyRef SecretKeyReferencesecretKeyRef selects the Secret key that holds the value.Required: {}

SignInSettings are the limits a class holds its companies’ own sign-in policy (Company spec.signIn) within: Crewlet’s api.auth.limits. They are the platform’s, since they bound how far a tenant may weaken how people sign in.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
secondFactor SecondFactorsecondFactor is whether every company of the class must require a
code from an authenticator app at a password sign-in (Required), or
may let people sign in with the password alone (Optional). Crewlet’s
api.auth.limits.second_factor.
Optional is refused by Crewlet on an address a browser reaches over
the network unless acceptInsecure acknowledges it, and the engine
judges that by where it is told people reach it, the Company’s
status.endpoints.dashboardBaseURL: a host of localhost (in any case)
or a loopback IP, such as the http://localhost:8080 of a company
reached through kubectl port-forward, needs no acknowledgement, and
any other host does. A company of the class whose address needs one
it does not have keeps its engine’s pods as they are, with
RuntimeReady=False InsecureSignInNotAcknowledged, rather than start
an engine that refuses to boot. The engine reads its limits only at
start, so a change to any of them restarts each company’s data pod.
RequiredEnum: [Required Optional]
Optional: {}
acceptInsecure booleanacceptInsecure acknowledges that a company of the class lets people
sign in with a password alone on an address a browser reaches over
the network: it is what lets secondFactor Optional run there, and
applies to secondFactor Optional only. It lifts nothing else, plain
http on such an address included, which the engine warns of either
way. While it is set the engine logs a config_advisory line at WARN
at every start, saying the insecure sign-in settings are allowed at
its address, for as long as the class sets it. Crewlet’s
api.auth.accept_insecure.
Optional: {}
minPasswordLength integerminPasswordLength is the shortest password floor a company of the
class may set, from 12 to 256 characters. Unset is Crewlet’s own 12.
Crewlet’s api.auth.limits.min_password_length.
Maximum: 256
Minimum: 12
Optional: {}
maxSessionLifetimeSeconds integermaxSessionLifetimeSeconds is the longest a company of the class may
let a session live from sign-in, from an hour (3600) to 30 days
(2592000). Unset is 30 days. Crewlet’s
api.auth.limits.max_session_lifetime.
Maximum: 2.592e+06
Minimum: 3600
Optional: {}
maxIdleTimeoutSeconds integermaxIdleTimeoutSeconds is the longest a company of the class may let a
session sit unused, from 15 minutes (900) to 30 days (2592000). Unset
is 30 days. Crewlet’s api.auth.limits.max_idle_timeout.
Maximum: 2.592e+06
Minimum: 900
Optional: {}
maxStepUpSeconds integermaxStepUpSeconds is the longest a company of the class may let one
proof of identity authorise sensitive changes, from 5 minutes (300) to
a day (86400). Unset is a day. Crewlet’s api.auth.limits.max_step_up.
Maximum: 86400
Minimum: 300
Optional: {}

SlackIntegration turns Slack on for a company. It maps onto Crewlet’s integrations.slack. Slack has no company-wide credential: every agent seat that speaks on Slack has its own app, in its Seat’s spec.integrations.slack.

Appears in:

FieldDescriptionDefaultValidation
typingStatus WorkingStatustypingStatus is when a seat shows that it is working. Unset takes
Crewlet’s default, Always. Crewlet’s typing_status.
Enum: [Always Addressed]
Optional: {}
statusPhrases StatusPhrasesstatusPhrases replaces the words the working indicator shows.
Crewlet’s status_phrases.
MinProperties: 1
Optional: {}

SlackSeatIntegration is a seat’s own Slack app, so the seat posts as itself. It maps onto Crewlet’s role integrations.slack and needs the company’s Slack Integration. Slack gives a bot no role: what the app may do is the bot token scopes of its manifest, and where it may do it is the channels it is invited to, so the block holds no access of its own.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanenabled is whether the seat is on Slack. False keeps the block, and
the engine revokes the app’s bot token rather than deleting the app;
turning it back on needs a person to approve the install again.
Crewlet’s enabled.
Required: {}
credentialsSecretRef SecretReferencecredentialsSecretRef is a Secret holding the app’s credentials under
the keys botToken (the bot token) and signingSecret (which verifies
the app’s webhooks). Crewlet’s bot_token and signing_secret, both
credential positions. Rewriting the Secret rotates them without a
restart. The Secret is the seat’s alone: Crewlet refuses one another
seat or an Integration names too.
Required: {}

SlackSeatStatus is the Slack side of a seat, as the operator computed it.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
requestURL stringrequestURL is the URL the seat’s Slack app must deliver events to: its
Event Subscriptions request URL, /webhooks/slack/,
where publicBaseURL is the Company’s status.endpoints.publicBaseURL.
It is set whenever the Company has a Slack Integration and a public
base URL, whether or not this Seat sets spec.integrations.slack: a
platform that creates the seat’s Slack app needs the URL for the app’s
manifest before the app, and so its credentials, exist. Derived from
the handle, which never changes, it never changes for a seat either.
MaxLength: 2048
MinLength: 1
Optional: {}

StatusPhrases replaces the words a seat’s working indicator shows. Each line completes the sentence ” is …”, and one line is picked per phase. Each list maps onto the same-named list of Crewlet’s status_phrases.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
onboarding string arrayonboarding is shown during a seat’s first-turn onboarding pass.MaxItems: 32
items:MaxLength: 256
items:MinLength: 1
Optional: {}
execute string arrayexecute is shown while the seat works.MaxItems: 32
items:MaxLength: 256
items:MinLength: 1
Optional: {}
review string arrayreview is shown while the reviewer judges the seat’s work.MaxItems: 32
items:MaxLength: 256
items:MinLength: 1
Optional: {}
default string arraydefault is shown in any phase without lines of its own.MaxItems: 32
items:MaxLength: 256
items:MinLength: 1
Optional: {}

Underlying type: string

StreamMode is where a company’s event stream runs.

Validation:

  • Enum: [Embedded]

Appears in:

FieldDescription
EmbeddedStreamModeEmbedded runs NATS JetStream inside the engine process, with
its data on the data volume. An external NATS cluster is not offered in
v1alpha1.

StreamSettings is how a company’s event stream runs.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
mode StreamModemode is where the stream runs. Embedded is the only mode in v1alpha1.EmbeddedEnum: [Embedded]
Optional: {}

TelemetrySettings sends the engine’s traces and metrics to an OpenTelemetry collector. The engine reads its exporter configuration from the standard OTEL_* environment variables, which the operator sets from these fields; with an endpoint set, Crewlet exports metrics as well as traces, and the two cannot be turned off separately (OTEL_ names are the operator’s, so OTEL_METRICS_EXPORTER cannot be set in env). A seat’s executor run exports its traces to its own engine pod’s listener, on loopback, with a token signed for its one run, and the engine forwards them to this collector with the headers below, which never enter the box.

Appears in:

FieldDescriptionDefaultValidation
otlpEndpoint stringotlpEndpoint is the collector’s OTLP/HTTP endpoint
(OTEL_EXPORTER_OTLP_ENDPOINT).
MaxLength: 2048
MinLength: 1
Required: {}
headersSecretRef NamespacedSecretKeyReferenceheadersSecretRef is a Secret key holding the headers sent to the
collector, in the OTEL_EXPORTER_OTLP_HEADERS format
(key1=value1,key2=value2), usually to authenticate. The operator copies
the value into a Secret it owns in each Company’s namespace and
references it from the pod; the value never appears in the pod
template. It is in the engine’s environment, which code the tenant
runs in the pod can read, so it reaches every tenant of the class: use
a credential that may only write telemetry, scoped per tenant where
the collector allows it.
Optional: {}

TokenBudget caps how many LLM tokens may be spent per calendar window on the company’s clock (spec.timeZone of the Company). Every window is optional and independent; an absent window is uncapped. It maps onto Crewlet’s token_budget block.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
day integerday is the most tokens one local day, midnight to midnight, may spend.Minimum: 1
Optional: {}
week integerweek is the most tokens one ISO week, starting on Monday, may spend.Minimum: 1
Optional: {}
month integermonth is the most tokens one calendar month may spend.Minimum: 1
Optional: {}

TopologyStatus is the state of a company’s pods.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
data DataTopologyStatusdata is the state of the data pods.MinProperties: 1
Optional: {}
seatPools SeatPoolStatus arrayseatPools is the state of each seat pool’s pods.MaxItems: 8
Optional: {}

Underlying type: string

TrackerBackend is which work tracker a company runs. It maps onto Crewlet’s tracker.backend (Worklet is worklet, Jira is jira, None is none).

Validation:

  • Enum: [Worklet Jira None]

Appears in:

FieldDescription
WorkletTrackerWorklet is Worklet, the engine’s own tracker.
JiraTrackerJira is Jira, connected by the company’s Jira Integration.
NoneTrackerNone is a company with no tracker.

TrackerSettings is which work tracker a company runs. It maps onto Crewlet’s tracker block.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
backend TrackerBackendbackend is which tracker the company runs.WorkletEnum: [Worklet Jira None]
Optional: {}

UnconfirmedRevision is a write of the company document whose activation the engine could not confirm.

Appears in:

FieldDescriptionDefaultValidation
revisionID stringrevisionID is the revision the engine stored for the write.MaxLength: 128
MinLength: 1
Required: {}
baseRevisionID stringbaseRevisionID is the revision the write was built on, which its
activation was conditioned on. Empty for a write into an engine that
ran no document, conditioned on there being none.
MaxLength: 128
MinLength: 1
Optional: {}
appliedHash stringappliedHash is the appliedHash of the write: the rendered document’s
and its values’ hash as they were when it was written, which
status.config.appliedHash records once the engine is seen running the
revision.
MaxLength: 128
MinLength: 1
Required: {}
writtenAt TimewrittenAt is when the operator wrote it. A write the engine is seen
running is recorded as applied when the operator found it, since
nothing says when its activation landed; a seed taken from overtaken,
which nothing waits on, as applied when it was written.
Required: {}
objects AppliedObjectCountsobjects counts the objects the revision was rendered from, which
status.config.objects records once the engine is seen running it.
MinProperties: 1
Optional: {}
replaced ReplacedRevisionreplaced says what the write replaced where that was more than the
operator’s own document, which ConfigApplied and a Warning event report
once the engine is seen running the revision, as they report a write the
engine confirmed: Unsealed, a revision the engine stores without a seal,
which the write replaces reading nothing from it; Drifted, a revision
the operator did not write whose document differed from the rendered
one, at driftedAt. Unset for any other base, and for a reload: its base
is a write of the operator’s, and where that write is recorded here too,
the revision found running reports what that write replaced, once,
whichever of the two it is.
Enum: [Unsealed Drifted]
Optional: {}
driftedAt stringdriftedAt names where the Drifted revision the write replaced differed
from the rendered document, as ConfigApplied names it: up to five
places, and how many more there were.
MaxLength: 32768
MinLength: 1
Optional: {}
documentSHA256 stringdocumentSHA256 is set for a reload: the SHA-256, in hex, of the
document of the revision it activates again, as the engine answered
it. The engine activates again whichever revision is active when the
request lands, so the revision it stored is the operator’s only where
its document is that one; one found running another document was a
reload of a revision somebody activated in between, and goes.
MaxLength: 64
MinLength: 64
Pattern: ^[0-9a-f]\{64\}$
Optional: {}

Unit is one node of a company’s org chart. Units nest through spec.parentRef; Seats join one through spec.unitRef.

The Unit’s metadata.name is the unit’s stable id in Crewlet, which has its own rules: it must start with a lowercase letter and be at most 64 characters, and may hold lowercase letters, digits and ’-’. (Crewlet also admits ’_’ in a unit id, which no Kubernetes name can hold.)

FieldDescriptionDefaultValidation
apiVersion stringcrewlet.ai/v1alpha1
kind stringUnit
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec UnitSpecspec is the unit’s desired state.Required: {}
status UnitStatusstatus is the unit’s observed state.MinProperties: 1
Optional: {}

UnitSpec is one node of a company’s org chart: a division, a team, a squad. It renders to one entry of Crewlet’s units, nested under its parent’s.

Appears in:

FieldDescriptionDefaultValidation
companyRef CompanyReferencecompanyRef names the Company this unit belongs to. Immutable.Required: {}
displayName stringdisplayName is the unit’s name as people read it, in prompts and on
boards. Unset is the Unit’s metadata.name. The metadata.name itself is
the unit’s stable id, which survives a rename. Crewlet’s name; the
metadata.name is Crewlet’s id, the key a seat’s manages entry names
the unit by. The displayName is for reading only: nothing refers to a
unit by it, so two Units may share one.
MaxLength: 256
MinLength: 1
Optional: {}
type UnitTypetype is an informational label. Crewlet’s type.Enum: [Division Department Group Team Squad Pod Guild Chapter Unit]
Optional: {}
parentRef LocalObjectReferenceparentRef names the Unit this one belongs to. Unset makes it a
top-level unit. A parent that does not exist, or a chain of parents
that leads back to this unit, is reported on this Unit.
Optional: {}
leadRef LocalObjectReferenceleadRef names the Seat that leads the unit. Unset inherits the
parent’s lead. Crewlet’s lead.
Optional: {}
purpose stringpurpose is what the unit is for. Crewlet’s purpose.MaxLength: 2048
MinLength: 1
Optional: {}
goals string arraygoals are what the unit is working toward. Crewlet’s goals.MaxItems: 32
items:MaxLength: 1024
items:MinLength: 1
Optional: {}
channel stringchannel is the unit’s channel on the company’s chat surface, by name,
such as platform; child units without one inherit it. On Chatlet, the
engine’s own chat and the surface of a company that declares no
Mattermost or Slack Integration, each channel a unit names is a room
whose members follow the org chart. Crewlet takes lowercase letters,
digits, - and _, starting with a letter or a digit, up to 64
characters: the name itself, never #platform or a vendor’s channel id.
On Chatlet a room belongs to one unit, so Crewlet refuses a second unit
naming the same channel; a child unit that should share its parent’s
room names none. Crewlet’s channel.
MaxLength: 64
MinLength: 1
Pattern: ^[a-z0-9][a-z0-9_-]\{0,63\}$
Optional: {}
knowledge string arrayknowledge are free-text references to knowledge the unit relies on.
They are not a read scope. Crewlet’s knowledge.
MaxItems: 32
items:MaxLength: 1024
items:MinLength: 1
Optional: {}
project stringproject is the tracker project the unit files work in, by its key.
Crewlet requires a container key to be an upper-case letter followed
by 1 to 9 upper-case letters or digits, such as PLAT. Crewlet’s
project.
MaxLength: 10
MinLength: 2
Pattern: ^[A-Z][A-Z0-9]\{1,9\}$
Optional: {}
space stringspace is the knowledge container the unit writes pages in, by its
key, which follows the same rule as project. Crewlet’s space.
MaxLength: 10
MinLength: 2
Pattern: ^[A-Z][A-Z0-9]\{1,9\}$
Optional: {}
mcp MCPCredentials arraymcp are tool-server credentials and settings every agent seat
directly in this unit inherits; a seat’s own values win per variable.
One entry per server, keyed by its name. Crewlet’s mcp_env, a
credential position. A value one seat must not share, such as
slack-mcp-server’s channel cache or a seat’s own credential, belongs
on the Seat. An entry holds values for the seats a server reaches (the
MCPServer’s access) and grants nothing: one for a server that reaches
none of the unit’s own agent seats is refused by the engine’s dry run,
reported as Invalid on the Unit, unless the server is named github,
gitlab, datadog, atlassian, jira or confluence, which Crewlet reads
itself.
MaxItems: 16
Optional: {}
mcpLimits MCPLimit arraymcpLimits narrow the tool servers granted to every agent seat beneath
this unit, at any depth: a server turned off for them, a tool held at
Approve or Blocked. One entry per server, keyed by its name. They never
widen a grant: each seat is held to the strictest of its own limits,
every enclosing unit’s and the MCPServer’s own. Crewlet’s
mcp_limits, which the engine lets a unit’s lead narrow and only an
administrator lift.
MaxItems: 16
Optional: {}

UnitStatus is what the operator observed about a Unit.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions are Accepted (the Company exists), ResolvedRefs (the
parent, the lead, the tool servers and every Secret key exist, and the
parents form no cycle) and Applied (the unit is in the revision the
engine runs).
MaxItems: 8
Optional: {}
observedGeneration integerobservedGeneration is the metadata.generation this status describes.Minimum: 1
Optional: {}
depth integerdepth is the unit’s distance from the top of the chart: 0 for a
top-level unit.
Minimum: 0
Optional: {}
seats integerseats is the number of Seats directly in the unit.Minimum: 0
Optional: {}

Underlying type: string

UnitType is an informational label for a unit; nothing in the engine behaves differently for one. It maps onto Crewlet’s well-known unit types (Division is division, Team is team, and so on).

Validation:

  • Enum: [Division Department Group Team Squad Pod Guild Chapter Unit]

Appears in:

FieldDescription
Division
Department
Group
Team
Squad
Pod
Guild
Chapter
Unit

WebhookExposure is how vendors’ webhooks reach a company’s engine. Whatever the mode, they reach the engine’s public listener (Crewlet’s api.public), a port of its own that serves only the routes outside parties call without an operator credential (/webhooks/ and the sandbox routes) and answers every other path as one nothing serves; the admin API, the dashboard and the probes are on the API port, which this never reaches. A seat’s executor run never comes this way: its box calls the seat’s tools and sends its traces to its own engine pod’s listener, on loopback.

Validation:

  • MinProperties: 1

Appears in:

FieldDescriptionDefaultValidation
mode WebhookExposureModemode is how webhooks reach the engine.NoneEnum: [Gateway Ingress External None]
Optional: {}
gateway GatewayExposuregateway is the Gateways to attach to, for mode Gateway.Optional: {}
ingress IngressExposureingress is the Ingress settings, for mode Ingress.Optional: {}
external ExternalExposureexternal is where the forwarder runs, for mode External.MinProperties: 1
Optional: {}
hostname stringhostname is the public host name of each company, as a template:
{{namespace}}, {{name}} and {{uid}} are replaced by the Company’s
namespace, name and UID. The result is the company’s public base URL,
https://, which every vendor is told to deliver to. Prefer
{{uid}}: the host name is public, and a UID says nothing about the
tenant where a name can; and a UID is never reused, so a vendor still
configured for a deleted company can never reach a company created
later under the same name. The template must contain {{uid}}, or
{{name}} and {{namespace}} joined by a ’.’, which neither can hold, so
that no two companies share a host name: with a ’-’ between them,
team-a/b-web and team-a-b/web would.
MaxLength: 253
MinLength: 1
Optional: {}

Underlying type: string

WebhookExposureMode is how vendors’ webhooks reach a company’s engine.

Validation:

  • Enum: [Gateway Ingress External None]

Appears in:

FieldDescription
GatewayWebhookExposureGateway routes the public hostname to the engine’s
public listener with an HTTPRoute.
IngressWebhookExposureIngress does the same with an Ingress.
ExternalWebhookExposureExternal creates nothing public: something outside the
operator (a relay, an API gateway) forwards to the public port of the
engine’s Service, and each Company states the address it is reached
on in spec.exposure.publicBaseURL.
NoneWebhookExposureNone exposes nothing; integrations that need inbound
delivery report that they are not exposed.

Underlying type: string

WorkingStatus is when a seat shows that it is working on a chat message. It maps onto Crewlet’s typing_status (Always is always, Addressed is addressed).

Validation:

  • Enum: [Always Addressed]

Appears in:

FieldDescription
AlwaysWorkingStatusAlways shows it on every turn a chat message started.
AddressedWorkingStatusAddressed shows it only when a person is plausibly
waiting on the seat: a direct message, a mention of it by name, and
on Slack or Mattermost a thread it is in because it was named there,
on Chatlet a reply in a thread it started or a person’s message in a
unit’s room that reached nobody else and so falls to it as the unit’s
lead. Never a message it reached through a room-wide address, or only
by having spoken in the thread before.

Part of Crewlet. Generated from crewlet/crewlet-operator main at 5aacd1b.