T3 Code Atlas

contracts/orchestratorMcp

62 schemas in 1 file.

Stablev0.1.14c0eed7328db2· 2026-12-05

Blast radius

2 direct · 0 transitive workspaces · 1 app affected

What a change to these 62 schemas can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (node)
Direct dependents
Contracts in its surface46 MCP
Framework
effect-schema
Shape
›{2 fields }
search?: TrimmedNonEmptyStringMatch model ids and labels. Replaces the short list.
Framework
effect-schema
Shape
›{8 fields }
›parentThreadId: union2 members
| makeEntityId
| null
inheritedProviderInstanceId: TrimmedNonEmptyString | null
inheritedModel: string | null
inheritedOptions?: ProviderOptionSelection[]
runtimeMode: RuntimeMode
interactionMode: ProviderInteractionMode
›features: {8 fields }
appOwnedSubagents: boolean
asyncPolling: boolean
cancellation: boolean
batchThreadCreation: boolean
threadManagement: boolean
incrementalThreadRead: boolean
scheduledTasks: boolean
maxBatchThreads: number
Framework
effect-schema
Shape
›{9 fields }
threadId: makeEntityId
link?: string
›runId: union2 members
| makeEntityId
| null
title: string
providerInstanceId: TrimmedNonEmptyString
model: string
Framework
effect-schema
Shape
›{10 fields }
target?: OrchestratorMcpTarget | string
isolation?: "shared" | "worktree"'shared' (default): parent checkout. 'worktree': new prepared checkout from the parent commit, for a separate checkout …
mode?: "async" | "wait"Default 'async'. 'wait' only if this turn needs the result. A question or approval ends the wait.
timeoutMs?: numberMode 'wait' only. At most 45 s. A timeout does not cancel the child.
runtimeMode?: OrchestratorMcpRuntimeModeOmit unless the user asks for a supervised child. Narrow modes pause for human approval, not read-only. Above yours is …
Framework
effect-schema
Shape
›{23 fields }
taskId: makeEntityId
›childThreadId: union2 members
| makeEntityId
| null
›remoteChild?: {3 fields }
environmentId: makeEntityId
threadId: makeEntityId
label: string
link?: string
›childRunId: union2 members
| makeEntityId
| null
childNodeId: makeEntityId
status: OrchestratorMcpDelegatedTaskStatusstarting means the child's provider has not started its turn yet, so no work has begun.
workState: "working" | "waiting_for_children" | "result_available"
hasPendingChildRuns: boolean
›latestTerminalRunId: union2 members
| makeEntityId
| null
latestTerminalStatus: OrchestratorMcpTerminalDelegatedTaskStatus | null
latestTerminalSummary: string | null
›latestTerminalResultContextTransferId: union2 members
| makeEntityId
| null
providerInstanceId: TrimmedNonEmptyString
model: string | null
executedModel?: string | nullModel the provider reported running, or null when unavailable. Can differ from the requested `model`.
summary: string | null
›resultContextTransferId: union2 members
| makeEntityId
| null
hasPendingQuestion: boolean
›pendingApproval: union2 membersOldest pending approval, or null. Ends a wait. Grants no approval rights.
›| {3 fields }
requestId: makeEntityId
kind: ?
runId: makeEntityId
| null
waitTimedOut: boolean
next?: string
Framework
effect-schema
Shape
›union8 members
| "queued"
| "starting"
| "running"
| "waiting"
| "completed"
| "failed"
| "cancelled"
| "interrupted"
Framework
effect-schema
Shape
›{2 fields }
scheduledTaskId: makeEntityId
Framework
effect-schema
Shape
›{2 fields }
scheduledTaskId: makeEntityId
deleted: boolean
Framework
effect-schema
Shape
›{6 fields }
environmentId?: makeEntityIdThe machine, when known, e.g. from a mentioned machine. Otherwise the user picks it in the card.
url?: TrimmedNonEmptyStringOnly an address the user gave: https, Tailscale, LAN or loopback. Never guess one.
hint?: TrimmedNonEmptyStringThe user's words for the machine, e.g. "vps". Preselects it in the card.
reason?: TrimmedNonEmptyStringOne sentence for the card.
requestedAccess?: AuthMcpClientAccessSuggested access. The user picks; default approval-required.
Framework
effect-schema
Shape
›union4 members
›| {2 fields }
status: "pending"The card is waiting for the user. Their answer arrives as a message in this thread.
turnItemId: makeEntityId
›| {4 fields }
status: "linked"
environmentId: makeEntityIdPass it as environmentId to act there; t3_environment_links lists it.
label: string
access: AuthMcpClientAccessThe access the user chose.
›| {1 field }
status: "declined" | "cancelled"declined: the user chose not to. cancelled: the card closed unanswered, when the thread was stopped or archived.
›| {2 fields }
status: "failed"
message: string
Framework
effect-schema
Shape
›{3 fields }
environmentId: makeEntityId
notListed: string
Framework
effect-schema
Shape
›{1 field }
environmentId: makeEntityIdThe linked environment to forget, from t3_environment_links.
Framework
effect-schema
Shape
›{3 fields }
environmentId: makeEntityId
removed: boolean
endedThere: boolean
Framework
effect-schema
Shape
›{3 fields }
_tag: "OrchestratorMcpFailure"
›code: union16 members
| "capability_denied"
| "parent_not_active"
| "provider_unavailable"
| "model_unavailable"
| "runtime_mode_escalation_denied"
| "interaction_mode_escalation_denied"
| "task_not_found"
| "task_not_cancellable"
| "thread_not_found"
| "run_not_found"
| "thread_not_sendable"
| "thread_not_interruptible"
| "invalid_request"
| "orchestration_error"
| "thread_credential_required"
| "target_required"
message: string
Framework
effect-schema
Shape
›{3 fields }
role: "user" | "assistant"
text: string
createdAt: string
Framework
effect-schema
Shape
›{3 fields }
projectId?: makeEntityIdDefault: your thread's project, or all outside a thread.
scheduledTaskId?: makeEntityId
Framework
effect-schema
Shape
›{9 fields }
providerInstanceId: TrimmedNonEmptyString
displayName: string | null
›models: arrayof
›{4 fields }
id: string
label?: string
favorite?: true
omittedModels?: NonNegativeInt
runtimeModes?: RuntimeMode[]
canRunChildTask: boolean
canRunCrossProviderChildTask: boolean
constraints: string[]
Framework
effect-schema
Shape
›{9 fields }
label: TrimmedNonEmptyStringCard title, such as 'GitHub webhook secret'.
reason: TrimmedNonEmptyStringWhat it is for and where to get it. A link goes in `url`.
url?: TrimmedNonEmptyStringSign-in or setup page for the value. Shown as a button.
placeholder?: TrimmedNonEmptyString
delivery?: "secretRef" | "file"secretRef (default) for a T3 tool; file for a command.
›fields?: arrayofValues only the user has, in one card, e.g. email + password, with delivery "file". Returns `files` by name.
›{4 fields }
name: …
label: …
placeholder: …
secret: …
value?: stringPasted in this thread; no card.
timeoutMs?: number
clientRequestId?: OrchestratorMcpClientRequestIdRetry key.
Framework
effect-schema
Shape
›union4 members
›| {2 fields }
status: "saved"
secretRef: makeEntityIdOne-use. Pass to a tool that accepts a secretRef. You never see the value.
›| {2 fields }
status: "saved"file holds the value.
file: string
›| {2 fields }
status: "saved"
files: Record<string, string>One file per field name, used like `file`.
›| {2 fields }
status: "declined" | "cancelled" | "timed_out"declined: user chose not to; don't ask again. cancelled: ended with the run. timed_out: no answer in time. After cancel…
note?: stringWhat to do next.
Framework
effect-schema
Shape
›{3 fields }
scheduledTaskId?: makeEntityId
schedule?: ScheduledTaskUpsertSchedule | stringTrigger: {type:'interval',everyMs}, {type:'fixed_time',timeOfDay,weekdays?}, {type:'once',runAt}, or {type:'webhook'}.
Framework
effect-schema
Shape
›{9 fields }
projectId?: makeEntityIdProject to use. Default: your thread's project. Required outside a thread.
schedule: ScheduledTaskUpsertSchedule | stringTrigger: {type:'interval',everyMs}, {type:'fixed_time',timeOfDay,weekdays?}, {type:'once',runAt}, or {type:'webhook'}.
enabled?: boolean
bindToCurrentThread?: boolean
freshSession?: boolean
Framework
effect-schema
Shape
›{13 fields }
scheduledTaskId: makeEntityId
title: string
prompt: string
enabled: boolean
projectId: makeEntityId
›boundThreadId: union2 members
| makeEntityId
| null
freshSession: boolean
nextRunAt: string | null
lastRunStatus: ScheduledTaskRunStatus
webhookUrl?: stringWebhook bearer URL, returned only on task creation to callers allowed to run it. Lists and updates omit it; the user ca…
webhookSignature?: "none" | "set"
blockedByPolicy?: stringPresent when an administrator's policy stops this task from running.
Framework
effect-schema
Shape
›{6 fields }
providerInstanceId?: TrimmedNonEmptyStringProvider instance id from `orchestrator_capabilities`.
driverKind?: TrimmedNonEmptyStringPrefer `providerInstanceId`.
options?: OrchestratorMcpTargetOptionsIds vary by provider; see `orchestrator_capabilities`. Given values override inherited. [] or {} clears.
environmentId?: makeEntityIdLinked environment to run in. Provider and model default to yours; others come from `orchestrator_capabilities` with th…
projectId?: makeEntityIdWith `environmentId`: its project to run in. Default: the one with this project's repository.
Framework
effect-schema
Shape
›{3 fields }
taskId: makeEntityId
reason?: string
Framework
effect-schema
Shape
›{2 fields }
taskId: makeEntityId
status: "cancel_requested" | "completed" | "failed" | "cancelled" | "interrupted"
Framework
effect-schema
Shape
"implementation" | "research" | "review" | "design" | "test" | "general"
Framework
effect-schema
Shape
›{1 field }
taskId: makeEntityId
Framework
effect-schema
Shape
"completed" | "failed" | "cancelled" | "interrupted"
Framework
effect-schema
Shape
›{5 fields }
kind: "subagent" | "command" | "monitor" | "background_task"
description?: TrimmedNonEmptyString
awaited?: true
childThreadId?: makeEntityId
Framework
effect-schema
Shape
›{37 fields }
threadId: makeEntityId
projectId: makeEntityId
title: string
link?: string
›latestRunId: union2 members
| makeEntityId
| null
›activeRunId: union2 members
| makeEntityId
| null
providerInstanceId: TrimmedNonEmptyString
model: string
runtimeMode: RuntimeMode
interactionMode: ProviderInteractionMode
linkedPullRequest: ThreadLinkedPullRequest | null
pullRequestCount?: NonNegativeInt
openPullRequestCount?: NonNegativeInt
titleRegeneration: ThreadTitleRegeneration | null
lastTitleRegeneration?: LastThreadTitleRegeneration | null
branch: string | null
worktreePath: string | null
›parentThreadId: union2 members
| makeEntityId
| null
›relationshipToParent: union2 members
| "fork" | "subagent"
| null
runCount: NonNegativeInt
itemCount: NonNegativeInt
pendingRequestCount: NonNegativeInt
archived: boolean
settled: boolean
settledAt: string | null
snoozed: boolean
snoozedUntil: string | null
pinned?: boolean
blockedOnThreadWait?: boolean
pendingBackgroundTasks?: OrchestratorMcpThreadBackgroundTask[]
createdAt: string
updatedAt: string
Framework
effect-schema
Shape
›{3 fields }
environmentId?: makeEntityIdSuggested machine, linked or not. Omit to let the user pick.
projectId?: makeEntityIdThat environment's project; omit for the one with this thread's repository.
continuationPrompt?: TrimmedNonEmptyStringWhat is left to do.
Framework
effect-schema
Shape
›{4 fields }
state: "proposed"
›environmentId: union2 members
| makeEntityId
| null
label: string | null
message: string
Framework
effect-schema
Shape
›{11 fields }
›source: {3 fields }
environmentId: makeEntityId
threadId: makeEntityId
projectId: makeEntityId
›modelSelection: {4 fields }
provider?: unknown
instanceId?: unknown
model: unknown
options?: ProviderOptionSelections | null
runtimeMode?: RuntimeMode
interactionMode?: ProviderInteractionMode
worktreePath?: TrimmedNonEmptyString
branch?: GitRefName
›bundle?: {4 fields }
continuationPrompt?: TrimmedNonEmptyString
Framework
effect-schema
Shape
›{4 fields }
threadId: makeEntityId
projectId: makeEntityId
created: boolean
›runId: union2 members
| makeEntityId
| null
Framework
effect-schema
Shape
›{6 fields }
threadId: makeEntityId
runId?: makeEntityId
reason?: string
stop?: boolean
Framework
effect-schema
Shape
›{3 fields }
threadId: makeEntityId
›runId: union2 members
| makeEntityId
| null
›status: union3 members
| "interrupt_requested"
| "no_active_run"
| "completed" | "failed" | "cancelled" | "interrupted" | "rolled_back"
Framework
effect-schema
Shape
›{10 fields }
projectId?: makeEntityIdProject to use. Default: your thread's project. Required outside a thread.
allProjects?: boolean
titleContains?: TrimmedNonEmptyString
settled?: boolean
snoozed?: boolean
includeSubagents?: boolean
limit?: clampedPositiveInt
Framework
effect-schema
Shape
›{29 fields }
threadId: makeEntityId
projectId: makeEntityId
title: string
link?: string
›latestRunId: union2 members
| makeEntityId
| null
providerInstanceId: TrimmedNonEmptyString
model: string
runtimeMode: RuntimeMode
interactionMode: ProviderInteractionMode
linkedPullRequest: ThreadLinkedPullRequest | null
pullRequestCount?: NonNegativeInt
openPullRequestCount?: NonNegativeInt
settled: boolean
settledAt: string | null
snoozed: boolean
snoozedUntil: string | null
pinned?: boolean
blockedOnThreadWait?: boolean
pendingBackgroundTasks?: OrchestratorMcpThreadBackgroundTask[]
›parentThreadId: union2 members
| makeEntityId
| null
›relationshipToParent: union2 members
| "fork" | "subagent"
| null
itemCount: NonNegativeInt
createdAt: string
updatedAt: string
Framework
effect-schema
Shape
›{5 fields }
›projectId: union2 members
| makeEntityId
| null
›currentThreadId: union2 members
| makeEntityId
| null
nextCursor: NonNegativeInt | null
Framework
effect-schema
Shape
›{5 fields }
state: PullRequestState | null
watching: boolean
watchStartedAt: string | null
Framework
effect-schema
Shape
›{10 fields }
threadId: makeEntityId
itemId?: makeEntityId
textOffset?: NonNegativeInt
view?: "messages" | "activity"
afterPosition?: number
beforePosition?: NonNegativeInt
limit?: clampedPositiveIntMax 100.
runLimit?: clampedPositiveIntMax 50.
maxCharsPerItem?: clampedPositiveIntMax 20000.
Framework
effect-schema
Shape
›{7 fields }
nextPosition: NonNegativeInt | null
hasMore: boolean
earlierPosition?: NonNegativeInt | null
note?: string
Framework
effect-schema
Shape
›{9 fields }
runId: makeEntityId
ordinal: PositiveInt
providerInstanceId: TrimmedNonEmptyString
model: string
executedModel?: string | nullModel the provider reported running, or null when unavailable. Can differ from the requested `model`.
requestedAt: string
startedAt: string | null
completedAt: string | null
Framework
effect-schema
Shape
›{7 fields }
threadId: makeEntityId
mode?: "auto" | "queue" | "steer" | "restart"
freshContext?: boolean
outputSchema?: Record<string, unknown>JSON Schema for a result the turn must return as data, read back as `output` from `t3_thread_wait`. Never steers.
Framework
effect-schema
Shape
›{7 fields }
threadId: makeEntityId
link?: string
messageId: makeEntityId
runId: makeEntityId
taskId?: makeEntityId
delivery: "started" | "queued" | "steered" | "restarted"
Framework
effect-schema
Shape
›{17 fields }
position: NonNegativeInt
visibility: "local" | "inherited" | "synthetic"
sourceThreadId: makeEntityId
itemId: makeEntityId
subagentId?: makeEntityId
›runId: union2 members
| makeEntityId
| null
›messageId: union2 members
| makeEntityId
| null
createdBy: OrchestrationV2Actor | null
creationSource: OrchestrationV2CreationSource | null
senderThreadId?: makeEntityId
type: string
title: string | null
text: string | null
textTruncated: boolean
nextTextOffset?: NonNegativeInt | null
updatedAt: string
Framework
effect-schema
Shape
›{6 fields }
threadId: makeEntityId
runId?: makeEntityId
timeoutMs?: numberDefault 30000, max 45000.
untilDelegatedWorkSettled?: boolean
untilOutput?: boolean
Framework
effect-schema
Shape
›{7 fields }
threadId: makeEntityId
›runId: union2 members
| makeEntityId
| null
timedOut: boolean
next?: string
›resultRun?: {2 fields }
runId: makeEntityId
output?: unknown
Framework
effect-schema
Shape
›{8 fields }
scheduledTaskId: makeEntityId
schedule?: ScheduledTaskUpsertSchedule | stringTrigger: {type:'interval',everyMs}, {type:'fixed_time',timeOfDay,weekdays?}, {type:'once',runAt}, or {type:'webhook'}.
enabled?: boolean
bindToCurrentThread?: boolean
freshSession?: boolean
Powered by Everdoc. Compiled from source by static analysis; no LLM in the loop.Stable v0.1.14c0eed7328db22026-12-05