Hosted worker
Configure a HOSTED_WORKER for hosted provider auth: provider, auth.secretRef, Linear provider fields, and LOGICAL_MOVE / CLASSIFIER_WORKSTATION companionship. Prefer POLLER_WORKER for new configs.
How To Use
Author a worker with type HOSTED_WORKER when migrating an existing hosted provider config. Set provider to a built-in hosted identity such as LINEAR. Authenticate through auth.secretRef only. Add optional linear fields such as pollInterval, teamIds, stateIds, mapping, and claim when the Linear provider needs them. Bind the worker from a LOGICAL_MOVE companion; use CLASSIFIER_WORKSTATION when the classifier companion applies. For new factories, prefer POLLER_WORKER instead of HOSTED_WORKER. Hosted workers are not model-backed or script backends: they do not own model, modelProvider, modelLocality, operations, command, args, or agentTools.Discriminator: type = HOSTED_WORKER
HOSTED_WORKER requires a LOGICAL_MOVE companion. CLASSIFIER_WORKSTATION is a compatible companion. Prefer POLLER_WORKER with POLLER_RUN for new hosted poller backends.
Schema reference
The embed below shows the live Worker base definition with HOSTED_WORKER overlay applicability. Shared fields include identity plus hosted-provider fields (provider, auth, linear). Excluded fields belong to model-routing, inference, agent-loop, or script families and must not appear on this variant. Open the full Factory schema reference for exhaustive field lookup rather than copying contract text into this page.Worker
objectA reusable worker definition that tells the factory how a workstation should execute work, such as through a model-backed agent or a script.
- additionalProperties
false (closed)
Fields
Explicit agent-loop tool policy for AGENT_WORKER definitions. Omit or set policy DISABLED to run agent loops without advertising or executing tools.
- args
argsOptionalarrayExcludedAdditional command arguments passed to the configured command.
Hosted-worker authentication contract. V1 hosted workers accept only auth.secretRef.
- body
bodyOptionalstringInline worker instructions or script body when the worker is authored directly in factory config.
- command
commandOptionalstringExcludedCommand to execute when this worker runs through a command or script provider.
Optional localized customer-facing explanation of this worker.
Execution mechanism. Use `ACP` for ACP-backed workers and put the configured integration identity (for example `cursor-acp`) in modelProvider. `SCRIPT_WRAP` remains the command-wrapper compatibility value; legacy named executor identities remain accepted during migration.
- id
idOptionalstringOptional durable public identifier for this worker. When present, graph and layout references should use this id instead of the mutable name.
Provider-specific configuration for the built-in hosted LINEAR worker.
- model
modelOptionalstringExcludedModel identifier to request from the configured model provider when this worker uses model execution.
Provider locality for this model capability declaration. Use `LOCAL` for embedded or host-managed inference and `CLOUD` for remote provider execution.
- modelProvider
modelProviderOptionaloneOfExcludedCanonical provider identity used for model routing and provider diagnostics, or an exact invocation-parameter placeholder such as `${modelProvider}`. For `executorProvider: ACP`, this names the configured ACP integration, such as `cursor-acp`. Extension identities use lowercase standardized syntax; built-in values such as `CLAUDE` and `CODEX` remain compatibility conveniences.
- name
nameRequiredstringWorker name referenced by Workstation.worker.
Provider-agnostic model operations that this worker can execute, including named input and output slots.
Built-in hosted provider identity when this worker uses repository-owned hosted execution.
Resource capacity this worker requires before it can be dispatched.
- skipPermissions
skipPermissionsOptionalbooleanExcludedWhen true, bypasses permission checks for providers that support permission gating.
- stopToken
stopTokenOptionalstringExcludedMarker that tells model-oriented workers where to stop generated output when the provider supports it.
- timeout
timeoutOptionalstringOptional Go duration that caps one worker execution attempt.
Worker implementation family to instantiate for this definition.
Examples
Use the minimal valid example when reviewing a HOSTED_WORKER with hosted Linear provider auth. The misuse example shows an inline API key under auth—V1 hosted workers accept only auth.secretRef, and validation rejects inline credential fields.Minimal valid HOSTED_WORKER:
{
"name": "linear-hosted",
"type": "HOSTED_WORKER",
"provider": "LINEAR",
"auth": {
"secretRef": "secrets/linear-api-key"
},
"linear": {
"pollInterval": "2m",
"teamIds": [
"team-a"
],
"stateIds": [
"state-b"
],
"mapping": {
"workType": "task",
"state": "init"
}
},
"body": "Legacy hosted Linear provider backend."
}
Incompatible misuse — inline secret on HOSTED_WORKER (rejected):
{
"name": "linear-hosted",
"type": "HOSTED_WORKER",
"provider": "LINEAR",
"auth": {
"apiKey": "lin_api_inline_secret"
},
"linear": {
"pollInterval": "2m",
"teamIds": [
"team-a"
],
"stateIds": [
"state-b"
],
"mapping": {
"workType": "task",
"state": "init"
}
},
"body": "Legacy hosted Linear provider backend."
}
auth accepts only secretRef. Validation rejects inline API keys and other credential fields. Resolve the referenced secret from an environment variable or a factory-relative secret file.