Skip to main content
Type contracts exported by this package: interfaces, type aliases, and enums.

AdapterCapabilities

Adapter capability declarations for CLEO provider adapters. T5240
PropertyTypeRequiredDescription
supportsHooksbooleanYessupportsHooks
supportedHookEventsstring[]YessupportedHookEvents
supportsSpawnbooleanYessupportsSpawn
supportsInstallbooleanYessupportsInstall
supportsMcpbooleanYessupportsMcp
supportsInstructionFilesbooleanYessupportsInstructionFiles
instructionFilePatternstring | undefinedNoProvider-specific instruction file name, e.g. “CLAUDE.md”, “.cursorrules”
supportsContextMonitorbooleanYessupportsContextMonitor
supportsStatuslinebooleanYessupportsStatusline
supportsProviderPathsbooleanYessupportsProviderPaths
supportsTransportbooleanYessupportsTransport
supportsTaskSyncbooleanYessupportsTaskSync

AdapterContextMonitorProvider

Context monitor provider interface for CLEO provider adapters. Allows providers to implement context window tracking and statusline integration. T5240
PropertyTypeRequiredDescription
processContextInput(input: unknown, cwd?: string | undefined) => Promise<string>NoProcess context window input and return a status string
checkStatuslineIntegration() => "configured" | "not_configured" | "custom_no_cleo" | "no_settings"YesCheck if statusline integration is configured
getStatuslineConfig() => Record<string, unknown>YesGet the statusline configuration object
getSetupInstructions() => stringYesGet human-readable setup instructions

AdapterHookProvider

Hook provider interface for CLEO provider adapters. Maps provider-specific events to CAAMP hook events. T5240
PropertyTypeRequiredDescription
mapProviderEvent(providerEvent: string) => string | nullYesMap a provider-specific event name to a CAAMP hook event name, or null if unmapped.
registerNativeHooks(projectDir: string) => Promise<void>YesRegister the provider’s native hook mechanism for a project.
unregisterNativeHooks() => Promise<void>YesUnregister all native hooks previously registered.
getEventMap(() => Readonly<Record<string, string>>) | undefinedNoReturn the full event mapping for introspection.

AdapterInstallProvider

Install provider interface for CLEO provider adapters. Handles registration with the provider and instruction file references. T5240
PropertyTypeRequiredDescription
install(options: InstallOptions) => Promise<InstallResult>Yesinstall
uninstall() => Promise<void>Yesuninstall
isInstalled() => Promise<boolean>YesisInstalled
ensureInstructionReferences(projectDir: string) => Promise<void>YesEnsure the provider’s instruction file references CLEO (e.g. AGENTS.md in CLAUDE.md).

InstallOptions

PropertyTypeRequiredDescription
projectDirstringYesprojectDir
globalboolean | undefinedNoglobal
mcpServerPathstring | undefinedNomcpServerPath

InstallResult

PropertyTypeRequiredDescription
successbooleanYessuccess
installedAtstringYesinstalledAt
instructionFileUpdatedbooleanYesinstructionFileUpdated
mcpRegisteredbooleanYesmcpRegistered
detailsRecord<string, unknown> | undefinedNodetails

AdapterPathProvider

Path provider interface for CLEO provider adapters. Allows providers to declare their OS-specific directory locations. T5240
PropertyTypeRequiredDescription
getProviderDir() => stringYesGet the provider’s global config directory (e.g., ~/.claude/)
getSettingsPath() => string | nullYesGet the path to the provider’s settings file, or null if N/A
getAgentInstallDir() => string | nullYesGet the directory where this provider installs agents, or null if N/A
getMemoryDbPath() => string | nullYesGet the path to a third-party memory DB if applicable, or null

AdapterSpawnProvider

Spawn provider interface for CLEO provider adapters. T5240
PropertyTypeRequiredDescription
canSpawn() => Promise<boolean>YescanSpawn
spawn(context: SpawnContext) => Promise<SpawnResult>Yesspawn
listRunning() => Promise<SpawnResult[]>YeslistRunning
terminate(instanceId: string) => Promise<void>Yesterminate

SpawnContext

PropertyTypeRequiredDescription
taskIdstringYestaskId
promptstringYesprompt
workingDirectorystring | undefinedNoworkingDirectory
optionsRecord<string, unknown> | undefinedNooptions

SpawnResult

PropertyTypeRequiredDescription
instanceIdstringYesinstanceId
taskIdstringYestaskId
providerIdstringYesproviderId
outputstring | undefinedNoOutput captured from the spawned process. Optional for detached/fire-and-forget spawns.
exitCodenumber | undefinedNoExit code of the spawned process. Optional for detached/fire-and-forget spawns.
status"running" | "completed" | "failed" | "cancelled" | "pending"Yesstatus
startTimestringYesstartTime
endTimestring | undefinedNoendTime
errorstring | undefinedNoError message when status is ‘failed’. Contains details about what went wrong.

ExternalTaskStatus

Normalized status for tasks coming from an external provider.
any

ExternalTask

A task as reported by an external provider, normalized to a common shape. Provider-specific adapters translate their native format into this.
PropertyTypeRequiredDescription
externalIdstringYesProvider-assigned identifier for this task (opaque to core).
titlestringYesHuman-readable title.
statusExternalTaskStatusYesNormalized status.
descriptionstring | undefinedNoOptional description text.
priority"high" | "medium" | "low" | "critical" | undefinedNoOptional priority mapping (provider decides how to map).
type"epic" | "task" | "subtask" | undefinedNoOptional task type mapping.
labelsstring[] | undefinedNoOptional labels/tags from the provider.
urlstring | undefinedNoOptional URL to the external task (for linking).
parentExternalIdstring | undefinedNoOptional parent external ID (for hierarchy).
providerMetaRecord<string, unknown> | undefinedNoArbitrary provider-specific metadata (opaque to core).

ExternalLinkType

How an external task link was established.
any

SyncDirection

Direction of the sync that established the link.
any
A link between a CLEO task and an external provider task. Stored in the external_task_links table in tasks.db.
PropertyTypeRequiredDescription
idstringYesLink ID (UUID).
taskIdstringYesCLEO task ID.
providerIdstringYesProvider identifier (e.g. ‘linear’, ‘jira’, ‘github’).
externalIdstringYesProvider-assigned external task ID.
externalUrlstring | null | undefinedNoURL to the external task.
externalTitlestring | null | undefinedNoTitle at time of last sync.
linkTypeExternalLinkTypeYesHow this link was established.
syncDirectionSyncDirectionYesSync direction.
metadataRecord<string, unknown> | undefinedNoProvider-specific metadata (JSON).
linkedAtstringYesWhen the link was first established.
lastSyncAtstring | null | undefinedNoWhen the external task was last synchronized.

ConflictPolicy

Policy for resolving conflicts between CLEO and provider state. - cleo-wins: CLEO state takes precedence (default). - provider-wins: Provider state takes precedence. - latest-wins: Most recently modified value wins. - report-only: Report conflicts without applying changes.
any

ReconcileOptions

Options for the reconciliation engine.
PropertyTypeRequiredDescription
providerIdstringYesProvider ID (e.g. ‘linear’, ‘jira’, ‘github’).
cwdstring | undefinedNoWorking directory (project root).
dryRunboolean | undefinedNoIf true, compute actions without applying them.
conflictPolicyConflictPolicy | undefinedNoConflict resolution policy. Defaults to ‘cleo-wins’.
defaultPhasestring | undefinedNoDefault phase for newly created tasks.
defaultLabelsstring[] | undefinedNoDefault labels for newly created tasks.

ReconcileActionType

The type of action the reconciliation engine will take.
any

ReconcileAction

A single reconciliation action (planned or applied).
PropertyTypeRequiredDescription
typeReconcileActionTypeYesWhat kind of change.
cleoTaskIdstring | nullYesThe CLEO task ID affected (null for creates before they happen).
externalIdstringYesThe external task ID that triggered this action.
summarystringYesHuman-readable description of the action.
appliedbooleanYesWhether this action was actually applied.
linkIdstring | undefinedNoThe link ID if a link was created or updated.
errorstring | undefinedNoError message if the action failed during apply.

ReconcileResult

Result of a full reconciliation run.
PropertyTypeRequiredDescription
dryRunbooleanYesWhether this was a dry run.
providerIdstringYesProvider that was reconciled.
actionsReconcileAction[]YesIndividual actions taken (or planned).
summary\{ created: number; updated: number; completed: number; activated: number; skipped: number; conflicts: number; total: number; applied: number; \}YesSummary counts.
linksAffectednumberYesLinks created or updated during this reconciliation.

ExternalTaskProvider

Interface that provider adapters implement to expose their external task system to the reconciliation engine. Provider-specific parsing lives in the adapter — core never sees native formats. Consumers implement this interface to integrate their issue tracker with CLEO.
PropertyTypeRequiredDescription
getExternalTasks(projectDir: string) => Promise<ExternalTask[]>YesRead the provider’s current task state and return normalized ExternalTasks.
pushTaskState((tasks: readonly \{ id: string; title: string; status: string; \}[], projectDir: string) => Promise<void>) | undefinedNoOptionally push CLEO task state back to the provider (outbound sync). Not all providers support bidirectional sync.

AdapterTransportProvider

Transport provider interface for CLEO provider adapters. Allows providers to supply custom inter-agent transport mechanisms. T5240
PropertyTypeRequiredDescription
createTransport() => unknownYesCreate a transport instance for inter-agent communication
transportNamestringYesName of this transport type for logging/debugging

CLEOProviderAdapter

PropertyTypeRequiredDescription
idstringYesid
namestringYesname
versionstringYesversion
capabilitiesAdapterCapabilitiesYescapabilities
hooksAdapterHookProvider | undefinedNohooks
spawnAdapterSpawnProvider | undefinedNospawn
installAdapterInstallProviderYesinstall
pathsAdapterPathProvider | undefinedNopaths
contextMonitorAdapterContextMonitorProvider | undefinedNocontextMonitor
transportAdapterTransportProvider | undefinedNotransport
taskSyncExternalTaskProvider | undefinedNotaskSync
initialize(projectDir: string) => Promise<void>Yesinitialize
dispose() => Promise<void>Yesdispose
healthCheck() => Promise<AdapterHealthStatus>YeshealthCheck

AdapterHealthStatus

PropertyTypeRequiredDescription
healthybooleanYeshealthy
providerstringYesprovider
detailsRecord<string, unknown> | undefinedNodetails

TaskStatus

any

SessionStatus

any

PipelineStatus

any

StageStatus

any

AdrStatus

any

GateStatus

any

ManifestStatus

any

EntityType

any

TaskPriority

Task priority levels.
any

TaskType

Task type in hierarchy.
any

TaskSize

Task size (scope, NOT time).
any

EpicLifecycle

Epic lifecycle states.
any

TaskOrigin

Task origin (provenance).
any

VerificationAgent

Verification agent types.
any

VerificationGate

Verification gate names.
any

VerificationFailure

Verification failure log entry.
PropertyTypeRequiredDescription
roundnumberYesround
agentstringYesagent
reasonstringYesreason
timestampstringYestimestamp

TaskVerification

Task verification state.
PropertyTypeRequiredDescription
passedbooleanYespassed
roundnumberYesround
gatesPartial<Record<VerificationGate, boolean | null>>Yesgates
lastAgentVerificationAgent | nullYeslastAgent
lastUpdatedstring | nullYeslastUpdated
failureLogVerificationFailure[]YesfailureLog

TaskProvenance

Task provenance tracking.
PropertyTypeRequiredDescription
createdBystring | nullYescreatedBy
modifiedBystring | nullYesmodifiedBy
sessionIdstring | nullYessessionId

TaskRelation

A single task relation entry.
PropertyTypeRequiredDescription
taskIdstringYestaskId
typestringYestype
reasonstring | undefinedNoreason

Task

A single CLEO task as stored in the database. Fields marked as required are enforced by CLEO’s anti-hallucination validation at runtime. Making them required here ensures the type system catches violations at compile time rather than deferring to runtime checks.
PropertyTypeRequiredDescription
idstringYesUnique task identifier. Must match pattern T\d\{3,\} (e.g., T001, T5800).
titlestringYesHuman-readable task title. Required, max 120 characters.
descriptionstringYesTask description. Required — CLEO’s anti-hallucination rules reject tasks without a description, and require it to differ from the title.
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived"YesCurrent task status. Must be a valid TaskStatus enum value.
priorityTaskPriorityYesTask priority level. Defaults to 'medium' on creation.
typeTaskType | undefinedNoTask type in hierarchy. Inferred from parent context if not specified.
parentIdstring | null | undefinedNoID of the parent task. null for root-level tasks.
positionnumber | null | undefinedNoSort position within sibling scope.
positionVersionnumber | undefinedNoOptimistic concurrency version for position changes.
sizeTaskSize | null | undefinedNoRelative scope sizing (small/medium/large). NOT a time estimate.
phasestring | undefinedNoPhase slug this task belongs to.
filesstring[] | undefinedNoFile paths associated with this task.
acceptancestring[] | undefinedNoAcceptance criteria for completion.
dependsstring[] | undefinedNoIDs of tasks this task depends on.
relatesTaskRelation[] | undefinedNoRelated task entries (non-dependency relationships).
epicLifecycleEpicLifecycle | null | undefinedNoEpic lifecycle state. Only meaningful when type = 'epic'.
noAutoCompleteboolean | null | undefinedNoWhen true, epic will not auto-complete when all children are done.
blockedBystring | undefinedNoReason the task is blocked (free-form text).
notesstring[] | undefinedNoTimestamped notes appended during task lifecycle.
labelsstring[] | undefinedNoClassification labels for filtering and grouping.
originTaskOrigin | null | undefinedNoTask origin/provenance category.
createdAtstringYesISO 8601 timestamp of task creation. Must not be in the future.
updatedAtstring | null | undefinedNoISO 8601 timestamp of last update. Set automatically on mutation.
completedAtstring | undefinedNoISO 8601 timestamp of task completion. Set when status transitions to 'done'. See CompletedTask for the status-narrowed type where this is required.
cancelledAtstring | undefinedNoISO 8601 timestamp of task cancellation. Set when status transitions to 'cancelled'. See CancelledTask for the status-narrowed type where this is required.
cancellationReasonstring | undefinedNoReason for cancellation. Required when status = 'cancelled'. See CancelledTask for the status-narrowed type where this is required.
verificationTaskVerification | null | undefinedNoVerification pipeline state.
provenanceTaskProvenance | null | undefinedNoProvenance tracking (who created/modified, which session).

TaskCreate

Input type for creating a new task via addTask(). Only the fields the caller MUST provide are required. All other fields have sensible defaults applied by the creation logic: - status defaults to 'pending' - priority defaults to 'medium' - type is inferred from parent context - size defaults to 'medium'
PropertyTypeRequiredDescription
titlestringYesHuman-readable task title. Required, max 120 characters.
descriptionstringYesTask description. Required — CLEO’s anti-hallucination rules reject tasks without a description, and require it to differ from the title.
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | undefinedNoInitial status. Defaults to 'pending'.
priorityTaskPriority | undefinedNoPriority level. Defaults to 'medium'.
typeTaskType | undefinedNoTask type. Inferred from parent context if not specified.
parentIdstring | null | undefinedNoParent task ID for hierarchy placement.
sizeTaskSize | undefinedNoRelative scope sizing. Defaults to 'medium'.
phasestring | undefinedNoPhase slug to assign. Inherited from project.currentPhase if not specified.
labelsstring[] | undefinedNoClassification labels.
filesstring[] | undefinedNoFile paths associated with this task.
acceptancestring[] | undefinedNoAcceptance criteria.
dependsstring[] | undefinedNoIDs of tasks this task depends on.
notesstring | undefinedNoInitial note to attach.
positionnumber | undefinedNoSort position. Auto-calculated if not specified.

CompletedTask

A task with status = 'done'. Narrows Task to require completedAt. Use this type when you need to guarantee a completed task has its completion timestamp — for example, in cycle-time calculations or archive operations.
any

CancelledTask

A task with status = 'cancelled'. Narrows Task to require cancelledAt and cancellationReason. Use this type when processing cancelled tasks where the cancellation metadata is guaranteed to be present.
any

PhaseStatus

Phase status.
any

Phase

Phase definition.
PropertyTypeRequiredDescription
ordernumberYesorder
namestringYesname
descriptionstring | undefinedNodescription
statusPhaseStatusYesstatus
startedAtstring | null | undefinedNostartedAt
completedAtstring | null | undefinedNocompletedAt

PhaseTransition

Phase transition record.
PropertyTypeRequiredDescription
phasestringYesphase
transitionType"completed" | "started" | "rollback"YestransitionType
timestampstringYestimestamp
taskCountnumberYestaskCount
fromPhasestring | null | undefinedNofromPhase
reasonstring | undefinedNoreason

ReleaseStatus

Release status.
any

Release

Release definition.
PropertyTypeRequiredDescription
versionstringYesversion
statusReleaseStatusYesstatus
targetDatestring | null | undefinedNotargetDate
releasedAtstring | null | undefinedNoreleasedAt
tasksstring[]Yestasks
notesstring | null | undefinedNonotes
changelogstring | null | undefinedNochangelog

ProjectMeta

Project metadata.
PropertyTypeRequiredDescription
namestringYesname
currentPhasestring | null | undefinedNocurrentPhase
phasesRecord<string, Phase>Yesphases
phaseHistoryPhaseTransition[] | undefinedNophaseHistory
releasesRelease[] | undefinedNoreleases

FileMeta

File metadata (_meta block).
PropertyTypeRequiredDescription
schemaVersionstringYesschemaVersion
specVersionstring | undefinedNospecVersion
checksumstringYeschecksum
configVersionstringYesconfigVersion
lastSessionIdstring | null | undefinedNolastSessionId
activeSessionstring | null | undefinedNoactiveSession
activeSessionCountnumber | undefinedNoactiveSessionCount
sessionsFilestring | null | undefinedNosessionsFile
generationnumber | undefinedNogeneration

SessionNote

Session note in taskWork block.
PropertyTypeRequiredDescription
notestringYesnote
timestampstringYestimestamp
conversationIdstring | null | undefinedNoconversationId
agentstring | null | undefinedNoagent

TaskWorkState

Task work state.
PropertyTypeRequiredDescription
currentTaskstring | null | undefinedNocurrentTask
currentPhasestring | null | undefinedNocurrentPhase
blockedUntilstring | null | undefinedNoblockedUntil
sessionNotestring | null | undefinedNosessionNote
sessionNotesSessionNote[] | undefinedNosessionNotes
nextActionstring | null | undefinedNonextAction
primarySessionstring | null | undefinedNoprimarySession

TaskFile

Root task data structure.
PropertyTypeRequiredDescription
versionstringYesversion
projectProjectMetaYesproject
lastUpdatedstringYeslastUpdated
_metaFileMetaYes_meta
taskWorkTaskWorkState | undefinedNotaskWork
focusTaskWorkState | undefinedNofocus
tasksTask[]Yestasks
labelsRecord<string, string[]> | undefinedNolabels

ArchiveMetadata

Archive metadata attached to archived task records.
PropertyTypeRequiredDescription
archivedAtstring | undefinedNoarchivedAt
cycleTimeDaysnumber | undefinedNocycleTimeDays
archiveSourcestring | undefinedNoarchiveSource
archiveReasonstring | undefinedNoarchiveReason

ArchivedTask

A task with archive metadata.
PropertyTypeRequiredDescription
_archiveArchiveMetadata | undefinedNo_archive

ArchiveReportType

Report type for archive statistics.
any

ArchiveSummaryReport

Summary report from archive statistics.
PropertyTypeRequiredDescription
totalArchivednumberYestotalArchived
byStatusRecord<string, number>YesbyStatus
byPriorityRecord<string, number>YesbyPriority
averageCycleTimenumber | nullYesaverageCycleTime
oldestArchivedstring | nullYesoldestArchived
newestArchivedstring | nullYesnewestArchived
archiveSourceBreakdownRecord<string, number>YesarchiveSourceBreakdown

ArchivePhaseEntry

Phase breakdown entry from archive statistics.
PropertyTypeRequiredDescription
phasestringYesphase
countnumberYescount
avgCycleTimenumber | nullYesavgCycleTime

ArchiveLabelEntry

Label breakdown entry from archive statistics.
PropertyTypeRequiredDescription
labelstringYeslabel
countnumberYescount

ArchivePriorityEntry

Priority breakdown entry from archive statistics.
PropertyTypeRequiredDescription
prioritystringYespriority
countnumberYescount
avgCycleTimenumber | nullYesavgCycleTime

CycleTimeDistribution

Cycle time distribution buckets.
PropertyTypeRequiredDescription
'0-1 days'numberYes’0-1 days’
'2-7 days'numberYes’2-7 days’
'8-30 days'numberYes’8-30 days’
'30+ days'numberYes’30+ days’

CycleTimePercentiles

Cycle time percentiles.
PropertyTypeRequiredDescription
p25number | nullYesp25
p50number | nullYesp50
p75number | nullYesp75
p90number | nullYesp90

ArchiveCycleTimesReport

Cycle times report from archive statistics.
PropertyTypeRequiredDescription
countnumberYescount
minnumber | nullYesmin
maxnumber | nullYesmax
avgnumber | nullYesavg
mediannumber | nullYesmedian
distributionCycleTimeDistributionYesdistribution
percentilesCycleTimePercentiles | undefinedNopercentiles

ArchiveDailyTrend

Daily archive trend entry.
PropertyTypeRequiredDescription
datestringYesdate
countnumberYescount

ArchiveMonthlyTrend

Monthly archive trend entry.
PropertyTypeRequiredDescription
monthstringYesmonth
countnumberYescount

ArchiveTrendsReport

Trends report from archive statistics.
PropertyTypeRequiredDescription
byDayArchiveDailyTrend[]YesbyDay
byMonthArchiveMonthlyTrend[]YesbyMonth
totalPeriodnumberYestotalPeriod
averagePerDaynumberYesaveragePerDay

ArchiveStatsEnvelope

Archive statistics result envelope.
PropertyTypeRequiredDescription
reportArchiveReportTypeYesreport
filters\{ since: string | null; until: string | null; \} | nullYesfilters
dataArchiveSummaryReport | ArchivePhaseEntry[] | ArchiveLabelEntry[] | ArchivePriorityEntry[] | ArchiveCycleTimesReport | ArchiveTrendsReport | \{ ...; \}Yesdata

BrainEntryRef

Compact brain entry reference used in contradiction analysis.
PropertyTypeRequiredDescription
idstringYesid
typestringYestype
contentstringYescontent
createdAtstringYescreatedAt

BrainEntrySummary

Brain entry reference with summary, used in superseded analysis.
PropertyTypeRequiredDescription
idstringYesid
typestringYestype
createdAtstringYescreatedAt
summarystringYessummary

ContradictionDetail

Contradiction detail between two brain entries.
PropertyTypeRequiredDescription
entryABrainEntryRefYesentryA
entryBBrainEntryRefYesentryB
contextstring | undefinedNocontext
conflictDetailsstringYesconflictDetails

SupersededEntry

Superseded entry pair showing old and replacement entries.
PropertyTypeRequiredDescription
oldEntryBrainEntrySummaryYesoldEntry
replacementBrainEntrySummaryYesreplacement
groupingstringYesgrouping

OutputFormat

Output format options.
any

DateFormat

Date format options.
any

OutputConfig

Output configuration.
PropertyTypeRequiredDescription
defaultFormatOutputFormatYesdefaultFormat
showColorbooleanYesshowColor
showUnicodebooleanYesshowUnicode
showProgressBarsbooleanYesshowProgressBars
dateFormatDateFormatYesdateFormat

BackupConfig

Backup configuration.
PropertyTypeRequiredDescription
maxOperationalBackupsnumberYesmaxOperationalBackups
maxSafetyBackupsnumberYesmaxSafetyBackups
compressionEnabledbooleanYescompressionEnabled

EnforcementProfile

Hierarchy enforcement profile preset.
any

HierarchyConfig

Hierarchy configuration.
PropertyTypeRequiredDescription
maxDepthnumberYesmaxDepth
maxSiblingsnumberYesmaxSiblings
cascadeDeletebooleanYescascadeDelete
maxActiveSiblingsnumberYesMaximum number of active (non-done) siblings. 0 = disabled.
countDoneInLimitbooleanYesWhether done tasks count toward the sibling limit.
enforcementProfileEnforcementProfileYesEnforcement profile preset. Explicit fields override preset values.

SessionConfig

Session configuration.
PropertyTypeRequiredDescription
autoStartbooleanYesautoStart
requireNotesbooleanYesrequireNotes
multiSessionbooleanYesmultiSession

LogLevel

Pino log levels.
any

LoggingConfig

Logging configuration.
PropertyTypeRequiredDescription
levelLogLevelYesMinimum log level to record (default: ‘info’)
filePathstringYesLog file path relative to .cleo/ (default: ‘logs/cleo.log’)
maxFileSizenumberYesMax log file size in bytes before rotation (default: 10MB)
maxFilesnumberYesNumber of rotated log files to retain (default: 5)
auditRetentionDaysnumberYesDays to retain audit_log rows before pruning (default: 90)
archiveBeforePrunebooleanYesWhether to archive pruned rows to compressed JSONL before deletion (default: true)

LifecycleEnforcementMode

Lifecycle enforcement mode.
any

LifecycleConfig

Lifecycle enforcement configuration.
PropertyTypeRequiredDescription
modeLifecycleEnforcementModeYesmode

SharingMode

Sharing mode: whether .cleo/ files are committed to the project git repo.
any

SharingConfig

Sharing configuration for multi-contributor .cleo/ state management.
PropertyTypeRequiredDescription
modeSharingModeYesSharing mode (default: ‘none’).
commitAllowliststring[]YesFiles/patterns in .cleo/ to commit to project git (relative to .cleo/).
denyliststring[]YesFiles/patterns to always exclude, even if in commitAllowlist.

SignalDockMode

SignalDock transport mode.
any

SignalDockConfig

SignalDock integration configuration.
PropertyTypeRequiredDescription
enabledbooleanYesWhether SignalDock transport is enabled (default: false).
modeSignalDockModeYesTransport mode: ‘http’ for REST API client, ‘native’ for napi-rs bindings (default: ‘http’).
endpointstringYesSignalDock API server endpoint (default: ‘http://localhost:4000’).
agentPrefixstringYesPrefix for CLEO agent names in SignalDock registry (default: ‘cleo-’).
privacyTier"public" | "discoverable" | "private"YesDefault privacy tier for registered agents (default: ‘private’).

CleoConfig

CLEO project configuration (config.json).
PropertyTypeRequiredDescription
versionstringYesversion
outputOutputConfigYesoutput
backupBackupConfigYesbackup
hierarchyHierarchyConfigYeshierarchy
sessionSessionConfigYessession
lifecycleLifecycleConfigYeslifecycle
loggingLoggingConfigYeslogging
sharingSharingConfigYessharing
signaldockSignalDockConfig | undefinedNoSignalDock inter-agent transport (optional, disabled by default).

ConfigSource

Configuration resolution priority.
any

ResolvedValue

A resolved config value with its source.
PropertyTypeRequiredDescription
valueTYesvalue
sourceConfigSourceYessource

SessionScope

Session scope JSON blob shape.
PropertyTypeRequiredDescription
typestringYestype
epicIdstring | undefinedNoepicId
rootTaskIdstring | undefinedNorootTaskId
includeDescendantsboolean | undefinedNoincludeDescendants
phaseFilterstring | null | undefinedNophaseFilter
labelFilterstring[] | null | undefinedNolabelFilter
maxDepthnumber | null | undefinedNomaxDepth
explicitTaskIdsstring[] | null | undefinedNoexplicitTaskIds
excludeTaskIdsstring[] | null | undefinedNoexcludeTaskIds
computedTaskIdsstring[] | undefinedNocomputedTaskIds
computedAtstring | undefinedNocomputedAt

SessionStats

Session statistics.
PropertyTypeRequiredDescription
tasksCompletednumberYestasksCompleted
tasksCreatednumberYestasksCreated
tasksUpdatednumberYestasksUpdated
focusChangesnumberYesfocusChanges
totalActiveMinutesnumberYestotalActiveMinutes
suspendCountnumberYessuspendCount

SessionTaskWork

Active task work state within a session.
PropertyTypeRequiredDescription
taskIdstring | nullYestaskId
setAtstring | nullYessetAt

Session

Session domain type — plain interface aligned with Drizzle sessions table.
PropertyTypeRequiredDescription
idstringYesid
namestringYesname
status"active" | "ended" | "orphaned" | "suspended"Yesstatus
scopeSessionScopeYesscope
taskWorkSessionTaskWorkYestaskWork
startedAtstringYesstartedAt
endedAtstring | undefinedNoendedAt
agentstring | undefinedNoagent
notesstring[] | undefinedNonotes
tasksCompletedstring[] | undefinedNotasksCompleted
tasksCreatedstring[] | undefinedNotasksCreated
handoffJsonstring | null | undefinedNohandoffJson
previousSessionIdstring | null | undefinedNopreviousSessionId
nextSessionIdstring | null | undefinedNonextSessionId
agentIdentifierstring | null | undefinedNoagentIdentifier
handoffConsumedAtstring | null | undefinedNohandoffConsumedAt
handoffConsumedBystring | null | undefinedNohandoffConsumedBy
debriefJsonstring | null | undefinedNodebriefJson
statsSessionStats | undefinedNostats
resumeCountnumber | undefinedNoresumeCount
gradeModeboolean | undefinedNogradeMode
providerIdstring | null | undefinedNoproviderId

SessionStartResult

Result of a session start operation. The sessionId field is a convenience alias for session.id, provided for consumers that expect it at the top level of the result.
PropertyTypeRequiredDescription
sessionSessionYessession
sessionIdstringYessessionId

ArchiveFields

Archive-specific fields for task upsert.
PropertyTypeRequiredDescription
archivedAtstring | undefinedNoarchivedAt
archiveReasonstring | undefinedNoarchiveReason
cycleTimeDaysnumber | null | undefinedNocycleTimeDays

ArchiveFile

Archive file structure.
PropertyTypeRequiredDescription
archivedTasksArchivedTask[]YesarchivedTasks
versionstring | undefinedNoversion

TaskQueryFilters

Filter bag for queryTasks(). Covers ~90% of task query patterns.
PropertyTypeRequiredDescription
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | ("cancelled" | "pending" | "active" | "blocked" | "done" | "archived")[] | undefinedNostatus
priorityTaskPriority | undefinedNopriority
typeTaskType | undefinedNotype
parentIdstring | null | undefinedNoparentId
phasestring | undefinedNophase
labelstring | undefinedNolabel
searchstring | undefinedNosearch
excludeStatus"cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | ("cancelled" | "pending" | "active" | "blocked" | "done" | "archived")[] | undefinedNoexcludeStatus
limitnumber | undefinedNolimit
offsetnumber | undefinedNooffset
orderBy"createdAt" | "updatedAt" | "priority" | "position" | undefinedNoorderBy

QueryTasksResult

Result from queryTasks() with pagination support.
PropertyTypeRequiredDescription
tasksTask[]Yestasks
totalnumberYestotal

TaskFieldUpdates

Partial task row fields for updateTaskFields().
PropertyTypeRequiredDescription
titlestring | undefinedNotitle
descriptionstring | null | undefinedNodescription
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | undefinedNostatus
priorityTaskPriority | undefinedNopriority
typeTaskType | null | undefinedNotype
parentIdstring | null | undefinedNoparentId
phasestring | null | undefinedNophase
sizeTaskSize | null | undefinedNosize
positionnumber | null | undefinedNoposition
positionVersionnumber | undefinedNopositionVersion
labelsJsonstring | undefinedNolabelsJson
notesJsonstring | undefinedNonotesJson
acceptanceJsonstring | undefinedNoacceptanceJson
filesJsonstring | undefinedNofilesJson
originstring | null | undefinedNoorigin
blockedBystring | null | undefinedNoblockedBy
epicLifecyclestring | null | undefinedNoepicLifecycle
noAutoCompleteboolean | null | undefinedNonoAutoComplete
completedAtstring | null | undefinedNocompletedAt
cancelledAtstring | null | undefinedNocancelledAt
cancellationReasonstring | null | undefinedNocancellationReason
verificationJsonstring | null | undefinedNoverificationJson
createdBystring | null | undefinedNocreatedBy
modifiedBystring | null | undefinedNomodifiedBy
sessionIdstring | null | undefinedNosessionId
updatedAtstring | null | undefinedNoupdatedAt

TransactionAccessor

Subset of DataAccessor methods available inside a transaction callback. Write-only — reads use the outer accessor (snapshot isolation).
PropertyTypeRequiredDescription
upsertSingleTask(task: Task) => Promise<void>YesupsertSingleTask
archiveSingleTask(taskId: string, fields: ArchiveFields) => Promise<void>YesarchiveSingleTask
removeSingleTask(taskId: string) => Promise<void>YesremoveSingleTask
setMetaValue(key: string, value: unknown) => Promise<void>YessetMetaValue
updateTaskFields(taskId: string, fields: TaskFieldUpdates) => Promise<void>YesupdateTaskFields
appendLog(entry: Record<string, unknown>) => Promise<void>YesappendLog

DataAccessor

DataAccessor interface. Core modules call these methods instead of readJson/saveJson. Each method maps directly to the file-level operations that core modules already perform.
PropertyTypeRequiredDescription
engine"sqlite"YesThe storage engine backing this accessor.
loadArchive() => Promise<ArchiveFile | null>YesLoad the archive file. Returns null if archive doesn’t exist.
saveArchive(data: ArchiveFile) => Promise<void>YesSave the archive file atomically. Creates backup before write.
loadSessions() => Promise<Session[]>YesLoad all sessions from the store. Returns empty array if none exist.
saveSessions(sessions: Session[]) => Promise<void>YesSave all sessions to the store atomically.
appendLog(entry: Record<string, unknown>) => Promise<void>YesAppend an entry to the audit log.
close() => Promise<void>YesRelease any resources (close DB connections, etc.).
upsertSingleTask(task: Task) => Promise<void>YesUpsert a single task (targeted write, no full-file reload).
archiveSingleTask(taskId: string, fields: ArchiveFields) => Promise<void>YesArchive a single task by ID (sets status=‘archived’ + archive metadata).
removeSingleTask(taskId: string) => Promise<void>YesDelete a single task permanently from the tasks table.
loadSingleTask(taskId: string) => Promise<Task | null>YesLoad a single task by ID with its dependencies and relations. Returns null if not found.
addRelation(taskId: string, relatedTo: string, relationType: string, reason?: string | undefined) => Promise<void>NoInsert a row into the task_relations table (T5168).
getMetaValue<T>(key: string) => Promise<T | null>YesRead a typed value from the metadata store. Returns null if not found.
setMetaValue(key: string, value: unknown) => Promise<void>YesWrite a typed value to the metadata store.
getSchemaVersion() => Promise<string | null>YesRead the schema version from metadata. Convenience for getMetaValue(‘schema_version’).
queryTasks(filters: TaskQueryFilters) => Promise<QueryTasksResult>YesQuery tasks with filters, pagination, and ordering. Returns matching tasks + total count.
countTasks(filters?: \{ status?: "cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | ("cancelled" | "pending" | "active" | "blocked" | "done" | "archived")[] | undefined; parentId?: string | undefined; \} | undefined) => Promise<...>NoCount tasks matching optional filters. Excludes archived by default.
getChildren(parentId: string) => Promise&lt;Task[]>YesGet direct children of a parent task.
countChildren(parentId: string) => Promise&lt;number&gt;YesCount direct children of a parent task (all statuses except archived).
countActiveChildren(parentId: string) => Promise&lt;number&gt;YesCount active (non-terminal) children of a parent task.
getAncestorChain(taskId: string) => Promise&lt;Task[]>YesGet ancestor chain from task to root via WITH RECURSIVE CTE. Ordered root-first.
getSubtree(rootId: string) => Promise&lt;Task[]>YesGet full subtree rooted at taskId via WITH RECURSIVE CTE. Includes root.
getDependents(taskId: string) => Promise&lt;Task[]>YesGet tasks that depend on (are blocked by) the given task. Reverse dep lookup.
getDependencyChain(taskId: string) => Promise&lt;string[]>YesGet transitive dependency chain via WITH RECURSIVE CTE. Returns task IDs.
taskExists(taskId: string) => Promise&lt;boolean&gt;YesCheck if a task exists (any status including archived).
loadTasks(taskIds: string[]) => Promise&lt;Task[]>YesLoad multiple tasks by ID in a single batch query.
updateTaskFields(taskId: string, fields: TaskFieldUpdates) => Promise&lt;void&gt;YesUpdate specific fields on a task without full load/save cycle.
getNextPosition(parentId: string | null) => Promise&lt;number&gt;YesGet next available position for a task within a parent scope (SQL-level, race-safe).
shiftPositions(parentId: string | null, fromPosition: number, delta: number) => Promise&lt;void&gt;YesShift positions of siblings = fromPosition by delta (bulk SQL update).
transaction&lt;T&gt;(fn: (tx: TransactionAccessor) => Promise&lt;T&gt;) => Promise&lt;T&gt;YesExecute a function inside a SQLite transaction (BEGIN IMMEDIATE / COMMIT / ROLLBACK).
getActiveSession() => Promise&lt;Session | null&gt;YesGet the currently active session (status=‘active’, most recent).
upsertSingleSession(session: Session) => Promise&lt;void&gt;YesUpsert a single session (targeted write).
removeSingleSession(sessionId: string) => Promise&lt;void&gt;YesRemove a single session by ID.

AdapterManifest

PropertyTypeRequiredDescription
idstringYesid
namestringYesname
versionstringYesversion
descriptionstringYesdescription
providerstringYesProvider identifier, e.g. “claude-code”, “opencode”, “cursor”
entryPointstringYesRelative path to the main adapter module
packagePathstringYesResolved absolute path to the adapter package root. Populated at discovery time by discoverAdapterManifests().
capabilitiesAdapterCapabilitiesYescapabilities
detectionPatternsDetectionPattern[]YesdetectionPatterns

DetectionPattern

PropertyTypeRequiredDescription
type"cli" | "file" | "process" | "env"Yestype
patternstringYespattern
descriptionstringYesdescription

ExitCode

CLEO exit codes — canonical definitions shared across all layers. Ranges: 0 = success, 1-99 = errors, 100+ = special (non-error) states. T4454 T4456 T5710
typeof ExitCode
PropertyTypeRequiredDescription
SUCCESSExitCode.SUCCESSYesSUCCESS
GENERAL_ERRORExitCode.GENERAL_ERRORYesGENERAL_ERROR
INVALID_INPUTExitCode.INVALID_INPUTYesINVALID_INPUT
FILE_ERRORExitCode.FILE_ERRORYesFILE_ERROR
NOT_FOUNDExitCode.NOT_FOUNDYesNOT_FOUND
DEPENDENCY_ERRORExitCode.DEPENDENCY_ERRORYesDEPENDENCY_ERROR
VALIDATION_ERRORExitCode.VALIDATION_ERRORYesVALIDATION_ERROR
LOCK_TIMEOUTExitCode.LOCK_TIMEOUTYesLOCK_TIMEOUT
CONFIG_ERRORExitCode.CONFIG_ERRORYesCONFIG_ERROR
PARENT_NOT_FOUNDExitCode.PARENT_NOT_FOUNDYesPARENT_NOT_FOUND
DEPTH_EXCEEDEDExitCode.DEPTH_EXCEEDEDYesDEPTH_EXCEEDED
SIBLING_LIMITExitCode.SIBLING_LIMITYesSIBLING_LIMIT
INVALID_PARENT_TYPEExitCode.INVALID_PARENT_TYPEYesINVALID_PARENT_TYPE
CIRCULAR_REFERENCEExitCode.CIRCULAR_REFERENCEYesCIRCULAR_REFERENCE
ORPHAN_DETECTEDExitCode.ORPHAN_DETECTEDYesORPHAN_DETECTED
HAS_CHILDRENExitCode.HAS_CHILDRENYesHAS_CHILDREN
TASK_COMPLETEDExitCode.TASK_COMPLETEDYesTASK_COMPLETED
CASCADE_FAILEDExitCode.CASCADE_FAILEDYesCASCADE_FAILED
HAS_DEPENDENTSExitCode.HAS_DEPENDENTSYesHAS_DEPENDENTS
CHECKSUM_MISMATCHExitCode.CHECKSUM_MISMATCHYesCHECKSUM_MISMATCH
CONCURRENT_MODIFICATIONExitCode.CONCURRENT_MODIFICATIONYesCONCURRENT_MODIFICATION
ID_COLLISIONExitCode.ID_COLLISIONYesID_COLLISION
SESSION_EXISTSExitCode.SESSION_EXISTSYesSESSION_EXISTS
SESSION_NOT_FOUNDExitCode.SESSION_NOT_FOUNDYesSESSION_NOT_FOUND
SCOPE_CONFLICTExitCode.SCOPE_CONFLICTYesSCOPE_CONFLICT
SCOPE_INVALIDExitCode.SCOPE_INVALIDYesSCOPE_INVALID
TASK_NOT_IN_SCOPEExitCode.TASK_NOT_IN_SCOPEYesTASK_NOT_IN_SCOPE
TASK_CLAIMEDExitCode.TASK_CLAIMEDYesTASK_CLAIMED
SESSION_REQUIREDExitCode.SESSION_REQUIREDYesSESSION_REQUIRED
SESSION_CLOSE_BLOCKEDExitCode.SESSION_CLOSE_BLOCKEDYesSESSION_CLOSE_BLOCKED
ACTIVE_TASK_REQUIREDExitCode.ACTIVE_TASK_REQUIREDYesACTIVE_TASK_REQUIRED
NOTES_REQUIREDExitCode.NOTES_REQUIREDYesNOTES_REQUIRED
VERIFICATION_INIT_FAILEDExitCode.VERIFICATION_INIT_FAILEDYesVERIFICATION_INIT_FAILED
GATE_UPDATE_FAILEDExitCode.GATE_UPDATE_FAILEDYesGATE_UPDATE_FAILED
INVALID_GATEExitCode.INVALID_GATEYesINVALID_GATE
INVALID_AGENTExitCode.INVALID_AGENTYesINVALID_AGENT
MAX_ROUNDS_EXCEEDEDExitCode.MAX_ROUNDS_EXCEEDEDYesMAX_ROUNDS_EXCEEDED
GATE_DEPENDENCYExitCode.GATE_DEPENDENCYYesGATE_DEPENDENCY
VERIFICATION_LOCKEDExitCode.VERIFICATION_LOCKEDYesVERIFICATION_LOCKED
ROUND_MISMATCHExitCode.ROUND_MISMATCHYesROUND_MISMATCH
CONTEXT_WARNINGExitCode.CONTEXT_WARNINGYesCONTEXT_WARNING
CONTEXT_CAUTIONExitCode.CONTEXT_CAUTIONYesCONTEXT_CAUTION
CONTEXT_CRITICALExitCode.CONTEXT_CRITICALYesCONTEXT_CRITICAL
CONTEXT_EMERGENCYExitCode.CONTEXT_EMERGENCYYesCONTEXT_EMERGENCY
CONTEXT_STALEExitCode.CONTEXT_STALEYesCONTEXT_STALE
PROTOCOL_MISSINGExitCode.PROTOCOL_MISSINGYesPROTOCOL_MISSING
INVALID_RETURN_MESSAGEExitCode.INVALID_RETURN_MESSAGEYesINVALID_RETURN_MESSAGE
MANIFEST_ENTRY_MISSINGExitCode.MANIFEST_ENTRY_MISSINGYesMANIFEST_ENTRY_MISSING
SPAWN_VALIDATION_FAILEDExitCode.SPAWN_VALIDATION_FAILEDYesSPAWN_VALIDATION_FAILED
AUTONOMOUS_BOUNDARYExitCode.AUTONOMOUS_BOUNDARYYesAUTONOMOUS_BOUNDARY
HANDOFF_REQUIREDExitCode.HANDOFF_REQUIREDYesHANDOFF_REQUIRED
RESUME_FAILEDExitCode.RESUME_FAILEDYesRESUME_FAILED
CONCURRENT_SESSIONExitCode.CONCURRENT_SESSIONYesCONCURRENT_SESSION
NEXUS_NOT_INITIALIZEDExitCode.NEXUS_NOT_INITIALIZEDYesNEXUS_NOT_INITIALIZED
NEXUS_PROJECT_NOT_FOUNDExitCode.NEXUS_PROJECT_NOT_FOUNDYesNEXUS_PROJECT_NOT_FOUND
NEXUS_PERMISSION_DENIEDExitCode.NEXUS_PERMISSION_DENIEDYesNEXUS_PERMISSION_DENIED
NEXUS_INVALID_SYNTAXExitCode.NEXUS_INVALID_SYNTAXYesNEXUS_INVALID_SYNTAX
NEXUS_SYNC_FAILEDExitCode.NEXUS_SYNC_FAILEDYesNEXUS_SYNC_FAILED
NEXUS_REGISTRY_CORRUPTExitCode.NEXUS_REGISTRY_CORRUPTYesNEXUS_REGISTRY_CORRUPT
NEXUS_PROJECT_EXISTSExitCode.NEXUS_PROJECT_EXISTSYesNEXUS_PROJECT_EXISTS
NEXUS_QUERY_FAILEDExitCode.NEXUS_QUERY_FAILEDYesNEXUS_QUERY_FAILED
NEXUS_GRAPH_ERRORExitCode.NEXUS_GRAPH_ERRORYesNEXUS_GRAPH_ERROR
NEXUS_RESERVEDExitCode.NEXUS_RESERVEDYesNEXUS_RESERVED
LIFECYCLE_GATE_FAILEDExitCode.LIFECYCLE_GATE_FAILEDYesLIFECYCLE_GATE_FAILED
AUDIT_MISSINGExitCode.AUDIT_MISSINGYesAUDIT_MISSING
CIRCULAR_VALIDATIONExitCode.CIRCULAR_VALIDATIONYesCIRCULAR_VALIDATION
LIFECYCLE_TRANSITION_INVALIDExitCode.LIFECYCLE_TRANSITION_INVALIDYesLIFECYCLE_TRANSITION_INVALID
PROVENANCE_REQUIREDExitCode.PROVENANCE_REQUIREDYesPROVENANCE_REQUIRED
ARTIFACT_TYPE_UNKNOWNExitCode.ARTIFACT_TYPE_UNKNOWNYesARTIFACT_TYPE_UNKNOWN
ARTIFACT_VALIDATION_FAILEDExitCode.ARTIFACT_VALIDATION_FAILEDYesARTIFACT_VALIDATION_FAILED
ARTIFACT_BUILD_FAILEDExitCode.ARTIFACT_BUILD_FAILEDYesARTIFACT_BUILD_FAILED
ARTIFACT_PUBLISH_FAILEDExitCode.ARTIFACT_PUBLISH_FAILEDYesARTIFACT_PUBLISH_FAILED
ARTIFACT_ROLLBACK_FAILEDExitCode.ARTIFACT_ROLLBACK_FAILEDYesARTIFACT_ROLLBACK_FAILED
PROVENANCE_CONFIG_INVALIDExitCode.PROVENANCE_CONFIG_INVALIDYesPROVENANCE_CONFIG_INVALID
SIGNING_KEY_MISSINGExitCode.SIGNING_KEY_MISSINGYesSIGNING_KEY_MISSING
SIGNATURE_INVALIDExitCode.SIGNATURE_INVALIDYesSIGNATURE_INVALID
DIGEST_MISMATCHExitCode.DIGEST_MISMATCHYesDIGEST_MISMATCH
ATTESTATION_INVALIDExitCode.ATTESTATION_INVALIDYesATTESTATION_INVALID
ADAPTER_NOT_FOUNDExitCode.ADAPTER_NOT_FOUNDYesADAPTER_NOT_FOUND
ADAPTER_INIT_FAILEDExitCode.ADAPTER_INIT_FAILEDYesADAPTER_INIT_FAILED
ADAPTER_HOOK_FAILEDExitCode.ADAPTER_HOOK_FAILEDYesADAPTER_HOOK_FAILED
ADAPTER_SPAWN_FAILEDExitCode.ADAPTER_SPAWN_FAILEDYesADAPTER_SPAWN_FAILED
ADAPTER_INSTALL_FAILEDExitCode.ADAPTER_INSTALL_FAILEDYesADAPTER_INSTALL_FAILED
NO_DATAExitCode.NO_DATAYesNO_DATA
ALREADY_EXISTSExitCode.ALREADY_EXISTSYesALREADY_EXISTS
NO_CHANGEExitCode.NO_CHANGEYesNO_CHANGE
TESTS_SKIPPEDExitCode.TESTS_SKIPPEDYesTESTS_SKIPPED

LAFSErrorCategory

LAFS error category.
any

LAFSError

LAFS error object.
PropertyTypeRequiredDescription
codestring | numberYescode
categoryLAFSErrorCategoryYescategory
messagestringYesmessage
fixstring | undefinedNofix
detailsRecord&lt;string, unknown&gt; | undefinedNodetails

Warning

LAFS warning.
PropertyTypeRequiredDescription
codestringYescode
messagestringYesmessage

LAFSTransport

LAFS transport metadata.
any

MVILevel

MVI (Minimal Viable Information) level.
any

LAFSPageNone

LAFS page — no pagination.
PropertyTypeRequiredDescription
strategy"none"Yesstrategy

LAFSPageOffset

LAFS page — offset-based pagination.
PropertyTypeRequiredDescription
strategy"offset"Yesstrategy
offsetnumberYesoffset
limitnumberYeslimit
totalnumberYestotal
hasMorebooleanYeshasMore

LAFSPage

LAFS page union.
any

LAFSMeta

LAFS metadata block.
PropertyTypeRequiredDescription
transportLAFSTransportYestransport
mviMVILevelYesmvi
pageLAFSPage | undefinedNopage
warningsWarning[] | undefinedNowarnings
durationMsnumber | undefinedNodurationMs

LAFSEnvelope

LAFS envelope (canonical protocol type).
PropertyTypeRequiredDescription
successbooleanYessuccess
dataT | undefinedNodata
errorLAFSError | undefinedNoerror
_metaLAFSMeta | undefinedNo_meta

FlagInput

Flag input for conformance checks.
PropertyTypeRequiredDescription
flagstringYesflag
valueunknownYesvalue

ConformanceReport

Conformance report.
PropertyTypeRequiredDescription
validbooleanYesvalid
violationsstring[]Yesviolations
warningsstring[]Yeswarnings

LafsAlternative

Actionable alternative the caller can try.
PropertyTypeRequiredDescription
actionstringYesaction
commandstringYescommand

LafsErrorDetail

LAFS error detail shared between CLI and MCP.
PropertyTypeRequiredDescription
codestring | numberYescode
namestring | undefinedNoname
messagestringYesmessage
fixstring | undefinedNofix
alternativesLafsAlternative[] | undefinedNoalternatives
detailsRecord&lt;string, unknown&gt; | undefinedNodetails

LafsSuccess

LAFS success envelope (CLI).
PropertyTypeRequiredDescription
successtrueYessuccess
dataTYesdata
messagestring | undefinedNomessage
noChangeboolean | undefinedNonoChange

LafsError

LAFS error envelope (CLI).
PropertyTypeRequiredDescription
successfalseYessuccess
errorLafsErrorDetailYeserror

LafsEnvelope

CLI envelope union type.
any

GatewayMeta

Metadata attached to every MCP gateway response. Extends the canonical LAFSMeta with CLEO gateway-specific fields. T4655
PropertyTypeRequiredDescription
gatewaystringYesgateway
domainstringYesdomain
duration_msnumberYesduration_ms

GatewaySuccess

MCP success envelope (extends CLI base with _meta).
PropertyTypeRequiredDescription
_metaGatewayMetaYes_meta

GatewayError

MCP error envelope (extends CLI base with _meta).
PropertyTypeRequiredDescription
_metaGatewayMetaYes_meta

GatewayEnvelope

MCP envelope union type.
any

CleoResponse

Unified CLEO response envelope. Every CLEO response (CLI or MCP) is a CleoResponse. MCP responses include the _meta field; CLI responses do not.
any

MemoryBridgeConfig

Memory bridge types for CLEO provider adapters. Defines the shape of .cleo/memory-bridge.md content for cross-provider memory sharing. T5240
PropertyTypeRequiredDescription
maxObservationsnumberYesmaxObservations
maxLearningsnumberYesmaxLearnings
maxPatternsnumberYesmaxPatterns
maxDecisionsnumberYesmaxDecisions
includeHandoffbooleanYesincludeHandoff
includeAntiPatternsbooleanYesincludeAntiPatterns

MemoryBridgeContent

PropertyTypeRequiredDescription
generatedAtstringYesgeneratedAt
lastSessionSessionSummary | undefinedNolastSession
learningsBridgeLearning[]Yeslearnings
patternsBridgePattern[]Yespatterns
antiPatternsBridgePattern[]YesantiPatterns
decisionsBridgeDecision[]Yesdecisions
recentObservationsBridgeObservation[]YesrecentObservations

SessionSummary

PropertyTypeRequiredDescription
sessionIdstringYessessionId
datestringYesdate
tasksCompletedstring[]YestasksCompleted
decisionsstring[]Yesdecisions
nextSuggestedstring[]YesnextSuggested

BridgeLearning

PropertyTypeRequiredDescription
idstringYesid
textstringYestext
confidencenumberYesconfidence

BridgePattern

PropertyTypeRequiredDescription
idstringYesid
textstringYestext
type"follow" | "avoid"Yestype

BridgeDecision

PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
datestringYesdate

BridgeObservation

PropertyTypeRequiredDescription
idstringYesid
datestringYesdate
summarystringYessummary

IssueSeverity

Common issue types
any

IssueArea

any

IssueType

any

Diagnostics

PropertyTypeRequiredDescription
cleoVersionstringYescleoVersion
bashVersionstringYesbashVersion
jqVersionstringYesjqVersion
osstringYesos
shellstringYesshell
cleoHomestringYescleoHome
ghVersionstringYesghVersion
installLocationstringYesinstallLocation

IssuesDiagnosticsParams

any

IssuesDiagnosticsResult

PropertyTypeRequiredDescription
diagnosticsDiagnosticsYesdiagnostics

IssuesCreateBugParams

PropertyTypeRequiredDescription
titlestringYestitle
bodystringYesbody
severityIssueSeverity | undefinedNoseverity
areaIssueArea | undefinedNoarea
dryRunboolean | undefinedNodryRun

IssuesCreateBugResult

PropertyTypeRequiredDescription
type"bug"Yestype
urlstringYesurl
numbernumberYesnumber
titlestringYestitle
labelsstring[]Yeslabels

IssuesCreateFeatureParams

PropertyTypeRequiredDescription
titlestringYestitle
bodystringYesbody
areaIssueArea | undefinedNoarea
dryRunboolean | undefinedNodryRun

IssuesCreateFeatureResult

PropertyTypeRequiredDescription
type"feature"Yestype
urlstringYesurl
numbernumberYesnumber
titlestringYestitle
labelsstring[]Yeslabels

IssuesCreateHelpParams

PropertyTypeRequiredDescription
titlestringYestitle
bodystringYesbody
areaIssueArea | undefinedNoarea
dryRunboolean | undefinedNodryRun

IssuesCreateHelpResult

PropertyTypeRequiredDescription
type"help"Yestype
urlstringYesurl
numbernumberYesnumber
titlestringYestitle
labelsstring[]Yeslabels

LifecycleStage

Common lifecycle types
any

GateStatus

any

StageRecord

PropertyTypeRequiredDescription
stageLifecycleStageYesstage
status"completed" | "failed" | "blocked" | "not_started" | "in_progress" | "skipped"Yesstatus
startedstring | undefinedNostarted
completedstring | undefinedNocompleted
agentstring | undefinedNoagent
notesstring | undefinedNonotes

Gate

PropertyTypeRequiredDescription
namestringYesname
stageLifecycleStageYesstage
statusGateStatusYesstatus
agentstring | undefinedNoagent
timestampstring | undefinedNotimestamp
reasonstring | undefinedNoreason

LifecycleCheckParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
targetStageLifecycleStageYestargetStage

LifecycleCheckResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
targetStageLifecycleStageYestargetStage
canProceedbooleanYescanProceed
missingPrerequisitesLifecycleStage[]YesmissingPrerequisites
gateStatus"failed" | "pending" | "passed"YesgateStatus

LifecycleStatusParams

PropertyTypeRequiredDescription
taskIdstring | undefinedNotaskId
epicIdstring | undefinedNoepicId

LifecycleStatusResult

PropertyTypeRequiredDescription
idstringYesid
currentStageLifecycleStageYescurrentStage
stagesStageRecord[]Yesstages
completedStagesLifecycleStage[]YescompletedStages
pendingStagesLifecycleStage[]YespendingStages

LifecycleHistoryParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

LifecycleHistoryEntry

PropertyTypeRequiredDescription
stageLifecycleStageYesstage
from"completed" | "failed" | "blocked" | "not_started" | "in_progress" | "skipped"Yesfrom
to"completed" | "failed" | "blocked" | "not_started" | "in_progress" | "skipped"Yesto
timestampstringYestimestamp
agentstring | undefinedNoagent
notesstring | undefinedNonotes

LifecycleHistoryResult

any

LifecycleGatesParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

LifecycleGatesResult

any

LifecyclePrerequisitesParams

PropertyTypeRequiredDescription
targetStageLifecycleStageYestargetStage

LifecyclePrerequisitesResult

PropertyTypeRequiredDescription
targetStageLifecycleStageYestargetStage
prerequisitesLifecycleStage[]Yesprerequisites
optionalLifecycleStage[]Yesoptional

LifecycleProgressParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
stageLifecycleStageYesstage
status"completed" | "failed" | "blocked" | "not_started" | "in_progress" | "skipped"Yesstatus
notesstring | undefinedNonotes

LifecycleProgressResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
stageLifecycleStageYesstage
status"completed" | "failed" | "blocked" | "not_started" | "in_progress" | "skipped"Yesstatus
timestampstringYestimestamp

LifecycleSkipParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
stageLifecycleStageYesstage
reasonstringYesreason

LifecycleSkipResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
stageLifecycleStageYesstage
skippedstringYesskipped
reasonstringYesreason

LifecycleResetParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
stageLifecycleStageYesstage
reasonstringYesreason

LifecycleResetResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
stageLifecycleStageYesstage
resetstringYesreset
reasonstringYesreason
warningstringYeswarning

LifecycleGatePassParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
gateNamestringYesgateName
agentstringYesagent
notesstring | undefinedNonotes

LifecycleGatePassResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
gateNamestringYesgateName
status"passed"Yesstatus
timestampstringYestimestamp

LifecycleGateFailParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
gateNamestringYesgateName
reasonstringYesreason

LifecycleGateFailResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
gateNamestringYesgateName
status"failed"Yesstatus
reasonstringYesreason
timestampstringYestimestamp

Wave

Common orchestration types
PropertyTypeRequiredDescription
wavenumberYeswave
taskIdsstring[]YestaskIds
canRunParallelbooleanYescanRunParallel
dependenciesstring[]Yesdependencies

SkillDefinition

PropertyTypeRequiredDescription
namestringYesname
descriptionstringYesdescription
tagsstring[]Yestags
modelstring | undefinedNomodel
protocolsstring[]Yesprotocols

OrchestrateStatusParams

PropertyTypeRequiredDescription
epicIdstringYesepicId

OrchestrateStatusResult

PropertyTypeRequiredDescription
epicIdstringYesepicId
totalTasksnumberYestotalTasks
completedTasksnumberYescompletedTasks
pendingTasksnumberYespendingTasks
blockedTasksnumberYesblockedTasks
currentWavenumberYescurrentWave
totalWavesnumberYestotalWaves
parallelCapacitynumberYesparallelCapacity

OrchestrateNextParams

PropertyTypeRequiredDescription
epicIdstringYesepicId

OrchestrateNextResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
titlestringYestitle
recommendedSkillstringYesrecommendedSkill
reasoningstringYesreasoning

OrchestrateReadyParams

PropertyTypeRequiredDescription
epicIdstringYesepicId

OrchestrateReadyResult

PropertyTypeRequiredDescription
wavenumberYeswave
taskIdsstring[]YestaskIds
parallelSafebooleanYesparallelSafe

OrchestrateAnalyzeParams

PropertyTypeRequiredDescription
epicIdstringYesepicId

OrchestrateAnalyzeResult

PropertyTypeRequiredDescription
wavesWave[]Yeswaves
criticalPathstring[]YescriticalPath
estimatedParallelismnumberYesestimatedParallelism
bottlenecksstring[]Yesbottlenecks

OrchestrateContextParams

PropertyTypeRequiredDescription
tokensnumber | undefinedNotokens

OrchestrateContextResult

PropertyTypeRequiredDescription
currentTokensnumberYescurrentTokens
maxTokensnumberYesmaxTokens
percentUsednumberYespercentUsed
level"high" | "medium" | "critical" | "safe"Yeslevel
recommendationstringYesrecommendation

OrchestrateWavesParams

PropertyTypeRequiredDescription
epicIdstringYesepicId

OrchestrateWavesResult

any

OrchestrateSkillListParams

PropertyTypeRequiredDescription
filterstring | undefinedNofilter

OrchestrateSkillListResult

any

OrchestrateBootstrapParams

PropertyTypeRequiredDescription
speed"full" | "fast" | "complete" | undefinedNospeed

BrainState

PropertyTypeRequiredDescription
session\{ id: string; name: string; status: string; startedAt: string; \} | undefinedNosession
currentTask\{ id: string; title: string; status: string; \} | undefinedNocurrentTask
nextSuggestion\{ id: string; title: string; score: number; \} | undefinedNonextSuggestion
recentDecisions\{ id: string; decision: string; timestamp: string; \}[] | undefinedNorecentDecisions
blockers\{ taskId: string; title: string; blockedBy: string[]; \}[] | undefinedNoblockers
progress\{ total: number; done: number; active: number; blocked: number; pending: number; \} | undefinedNoprogress
contextDrift\{ score: number; factors: string[]; \} | undefinedNocontextDrift
_meta\{ speed: "full" | "fast" | "complete"; generatedAt: string; version: string; \}Yes_meta

OrchestrateStartupParams

PropertyTypeRequiredDescription
epicIdstringYesepicId

OrchestrateStartupResult

PropertyTypeRequiredDescription
epicIdstringYesepicId
statusOrchestrateStatusResultYesstatus
analysisOrchestrateAnalyzeResultYesanalysis
firstTaskOrchestrateNextResultYesfirstTask

OrchestrateSpawnParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
skillstring | undefinedNoskill
modelstring | undefinedNomodel

OrchestrateSpawnResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
skillstringYesskill
modelstringYesmodel
promptstringYesprompt
metadata\{ tokensUsed: number; protocolsInjected: string[]; dependencies: string[]; \}Yesmetadata

OrchestrateHandoffParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
protocolTypestringYesprotocolType
notestring | undefinedNonote
nextActionstring | undefinedNonextAction
variantstring | undefinedNovariant
tier0 | 1 | 2 | undefinedNotier
idempotencyKeystring | undefinedNoidempotencyKey

OrchestrateHandoffResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
predecessorSessionIdstringYespredecessorSessionId
endedSessionIdstringYesendedSessionId
protocolTypestringYesprotocolType

OrchestrateValidateParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

OrchestrateValidateResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
readybooleanYesready
blockersstring[]Yesblockers
lifecycleGate"failed" | "pending" | "passed"YeslifecycleGate
recommendationsstring[]Yesrecommendations

OrchestrateParallelStartParams

PropertyTypeRequiredDescription
epicIdstringYesepicId
wavenumberYeswave

OrchestrateParallelStartResult

PropertyTypeRequiredDescription
wavenumberYeswave
taskIdsstring[]YestaskIds
startedstringYesstarted

OrchestrateParallelEndParams

PropertyTypeRequiredDescription
epicIdstringYesepicId
wavenumberYeswave

OrchestrateParallelEndResult

PropertyTypeRequiredDescription
wavenumberYeswave
completednumberYescompleted
failednumberYesfailed
durationstringYesduration

ReleaseType

Common release types
any

ReleaseGate

PropertyTypeRequiredDescription
namestringYesname
descriptionstringYesdescription
passedbooleanYespassed
reasonstring | undefinedNoreason

ChangelogSection

PropertyTypeRequiredDescription
type"refactor" | "docs" | "feat" | "fix" | "test" | "chore"Yestype
entries\{ taskId: string; message: string; \}[]Yesentries

ReleasePrepareParams

PropertyTypeRequiredDescription
versionstringYesversion
typeReleaseTypeYestype

ReleasePrepareResult

PropertyTypeRequiredDescription
versionstringYesversion
typeReleaseTypeYestype
currentVersionstringYescurrentVersion
filesstring[]Yesfiles
readybooleanYesready
warningsstring[]Yeswarnings

ReleaseChangelogParams

PropertyTypeRequiredDescription
versionstringYesversion
sections("refactor" | "docs" | "feat" | "fix" | "test" | "chore")[] | undefinedNosections

ReleaseChangelogResult

PropertyTypeRequiredDescription
versionstringYesversion
contentstringYescontent
sectionsChangelogSection[]Yessections
commitCountnumberYescommitCount

ReleaseCommitParams

PropertyTypeRequiredDescription
versionstringYesversion
filesstring[] | undefinedNofiles

ReleaseCommitResult

PropertyTypeRequiredDescription
versionstringYesversion
commitHashstringYescommitHash
messagestringYesmessage
filesCommittedstring[]YesfilesCommitted

ReleaseTagParams

PropertyTypeRequiredDescription
versionstringYesversion
messagestring | undefinedNomessage

ReleaseTagResult

PropertyTypeRequiredDescription
versionstringYesversion
tagNamestringYestagName
createdstringYescreated

ReleasePushParams

PropertyTypeRequiredDescription
versionstringYesversion
remotestring | undefinedNoremote

ReleasePushResult

PropertyTypeRequiredDescription
versionstringYesversion
remotestringYesremote
pushedstringYespushed
tagsPushedstring[]YestagsPushed

ReleaseGatesRunParams

PropertyTypeRequiredDescription
gatesstring[] | undefinedNogates

ReleaseGatesRunResult

PropertyTypeRequiredDescription
totalnumberYestotal
passednumberYespassed
failednumberYesfailed
gatesReleaseGate[]Yesgates
canReleasebooleanYescanRelease

ReleaseRollbackParams

PropertyTypeRequiredDescription
versionstringYesversion
reasonstringYesreason

ReleaseRollbackResult

PropertyTypeRequiredDescription
versionstringYesversion
rolledBackstringYesrolledBack
restoredVersionstringYesrestoredVersion
reasonstringYesreason

ResearchEntry

Common research types
PropertyTypeRequiredDescription
idstringYesid
taskIdstringYestaskId
titlestringYestitle
filestringYesfile
datestringYesdate
status"completed" | "blocked" | "partial"Yesstatus
agentTypestringYesagentType
topicsstring[]Yestopics
keyFindingsstring[]YeskeyFindings
actionablebooleanYesactionable
needsFollowupstring[]YesneedsFollowup
linkedTasksstring[]YeslinkedTasks
confidencenumber | undefinedNoconfidence

ManifestEntry

PropertyTypeRequiredDescription
idstringYesid
filestringYesfile
titlestringYestitle
datestringYesdate
status"completed" | "blocked" | "partial"Yesstatus
agent_typestringYesagent_type
topicsstring[]Yestopics
key_findingsstring[]Yeskey_findings
actionablebooleanYesactionable
needs_followupstring[]Yesneeds_followup
linked_tasksstring[]Yeslinked_tasks

ResearchShowParams

PropertyTypeRequiredDescription
researchIdstringYesresearchId

ResearchShowResult

any

ResearchListParams

PropertyTypeRequiredDescription
epicIdstring | undefinedNoepicId
status"completed" | "blocked" | "partial" | undefinedNostatus

ResearchListResult

any

ResearchQueryParams

PropertyTypeRequiredDescription
querystringYesquery
confidencenumber | undefinedNoconfidence

ResearchQueryResult

PropertyTypeRequiredDescription
entriesResearchEntry[]Yesentries
matchCountnumberYesmatchCount
avgConfidencenumberYesavgConfidence

ResearchPendingParams

PropertyTypeRequiredDescription
epicIdstring | undefinedNoepicId

ResearchPendingResult

any

ResearchStatsParams

PropertyTypeRequiredDescription
epicIdstring | undefinedNoepicId

ResearchStatsResult

PropertyTypeRequiredDescription
totalnumberYestotal
completenumberYescomplete
partialnumberYespartial
blockednumberYesblocked
byAgentTypeRecord&lt;string, number&gt;YesbyAgentType
byTopicRecord&lt;string, number&gt;YesbyTopic
avgConfidencenumberYesavgConfidence

ResearchManifestReadParams

PropertyTypeRequiredDescription
filterstring | undefinedNofilter
limitnumber | undefinedNolimit
offsetnumber | undefinedNooffset

ResearchManifestReadResult

any

ResearchInjectParams

PropertyTypeRequiredDescription
protocolType"research" | "consensus" | "specification" | "decomposition" | "implementation" | "release" | "contribution"YesprotocolType
taskIdstring | undefinedNotaskId
variantstring | undefinedNovariant

ResearchInjectResult

PropertyTypeRequiredDescription
protocolstringYesprotocol
contentstringYescontent
tokensUsednumberYestokensUsed

ResearchLinkParams

PropertyTypeRequiredDescription
researchIdstringYesresearchId
taskIdstringYestaskId
relationship"blocks" | "supersedes" | "supports" | "references" | undefinedNorelationship

ResearchLinkResult

PropertyTypeRequiredDescription
researchIdstringYesresearchId
taskIdstringYestaskId
relationshipstringYesrelationship
linkedstringYeslinked

ResearchManifestAppendParams

PropertyTypeRequiredDescription
entryManifestEntryYesentry
validateFileboolean | undefinedNovalidateFile

ResearchManifestAppendResult

PropertyTypeRequiredDescription
idstringYesid
appendedstringYesappended
validatedbooleanYesvalidated

ResearchManifestArchiveParams

PropertyTypeRequiredDescription
beforeDatestring | undefinedNobeforeDate
moveFilesboolean | undefinedNomoveFiles

ResearchManifestArchiveResult

PropertyTypeRequiredDescription
archivednumberYesarchived
entryIdsstring[]YesentryIds
filesMovedCountnumber | undefinedNofilesMovedCount

SessionOp

Common session types
PropertyTypeRequiredDescription
idstringYesid
namestringYesname
scopestringYesscope
startedstringYesstarted
endedstring | undefinedNoended
startedTaskstring | undefinedNostartedTask
status"active" | "ended" | "suspended"Yesstatus
notesstring[] | undefinedNonotes

SessionStatusParams

any

SessionStatusResult

PropertyTypeRequiredDescription
currentSessionOp | nullYescurrent
hasStartedTaskbooleanYeshasStartedTask
startedTaskstring | undefinedNostartedTask

SessionListParams

PropertyTypeRequiredDescription
activeboolean | undefinedNoactive
statusstring | undefinedNostatus
limitnumber | undefinedNolimit
offsetnumber | undefinedNooffset

SessionListResult

PropertyTypeRequiredDescription
sessionsSessionOp[]Yessessions
totalnumberYestotal
filterednumberYesfiltered

SessionShowParams

PropertyTypeRequiredDescription
sessionIdstringYessessionId

SessionShowResult

any

SessionHistoryParams

PropertyTypeRequiredDescription
limitnumber | undefinedNolimit

SessionHistoryEntry

PropertyTypeRequiredDescription
sessionIdstringYessessionId
namestringYesname
startedstringYesstarted
endedstringYesended
tasksCompletednumberYestasksCompleted
durationstringYesduration

SessionHistoryResult

any

SessionStartParams

PropertyTypeRequiredDescription
scopestringYesscope
namestring | undefinedNoname
autoStartboolean | undefinedNoautoStart
startTaskstring | undefinedNostartTask

SessionStartResult

any

SessionEndParams

PropertyTypeRequiredDescription
notesstring | undefinedNonotes

SessionEndResult

PropertyTypeRequiredDescription
sessionSessionOpYessession
summary\{ duration: string; tasksCompleted: number; tasksCreated: number; \}Yessummary

SessionResumeParams

PropertyTypeRequiredDescription
sessionIdstringYessessionId

SessionResumeResult

any

SessionSuspendParams

PropertyTypeRequiredDescription
notesstring | undefinedNonotes

SessionSuspendResult

PropertyTypeRequiredDescription
sessionIdstringYessessionId
suspendedstringYessuspended

SessionGcParams

PropertyTypeRequiredDescription
olderThanstring | undefinedNoolderThan

SessionGcResult

PropertyTypeRequiredDescription
cleanednumberYescleaned
sessionIdsstring[]YessessionIds

SkillCategory

Common skill types
any

SkillStatus

any

DispatchStrategy

any

SkillSummary

PropertyTypeRequiredDescription
namestringYesname
versionstringYesversion
descriptionstringYesdescription
categorySkillCategoryYescategory
corebooleanYescore
tiernumberYestier
statusSkillStatusYesstatus
protocolstring | nullYesprotocol

SkillDetail

PropertyTypeRequiredDescription
pathstringYespath
referencesstring[]Yesreferences
dependenciesstring[]Yesdependencies
sharedResourcesstring[]YessharedResources
compatibilitystring[]Yescompatibility
licensestringYeslicense
metadataRecord&lt;string, unknown&gt;Yesmetadata
capabilities\{ inputs: string[]; outputs: string[]; dispatch_triggers: string[]; compatible_subagent_types: string[]; chains_to: string[]; dispatch_keywords: \{ primary: string[]; secondary: string[]; \}; \} | undefinedNocapabilities
constraints\{ max_context_tokens: number; requires_session: boolean; requires_epic: boolean; \} | undefinedNoconstraints

DispatchCandidate

PropertyTypeRequiredDescription
skillstringYesskill
scorenumberYesscore
strategyDispatchStrategyYesstrategy
reasonstringYesreason

DependencyNode

PropertyTypeRequiredDescription
namestringYesname
versionstringYesversion
directbooleanYesdirect
depthnumberYesdepth

ValidationIssue

PropertyTypeRequiredDescription
level"error" | "warn"Yeslevel
fieldstringYesfield
messagestringYesmessage

SkillsListParams

PropertyTypeRequiredDescription
categorySkillCategory | undefinedNocategory
coreboolean | undefinedNocore
filterstring | undefinedNofilter

SkillsListResult

any

SkillsShowParams

PropertyTypeRequiredDescription
namestringYesname

SkillsShowResult

any

SkillsFindParams

PropertyTypeRequiredDescription
querystringYesquery
limitnumber | undefinedNolimit

SkillsFindResult

PropertyTypeRequiredDescription
querystringYesquery
results(SkillSummary & \{ score: number; matchReason: string; \})[]Yesresults

SkillsDispatchParams

PropertyTypeRequiredDescription
taskIdstring | undefinedNotaskId
taskTypestring | undefinedNotaskType
labelsstring[] | undefinedNolabels
titlestring | undefinedNotitle
descriptionstring | undefinedNodescription

SkillsDispatchResult

PropertyTypeRequiredDescription
selectedSkillstringYesselectedSkill
reasonstringYesreason
strategyDispatchStrategyYesstrategy
candidatesDispatchCandidate[]Yescandidates

SkillsVerifyParams

PropertyTypeRequiredDescription
namestring | undefinedNoname

SkillsVerifyResult

PropertyTypeRequiredDescription
validbooleanYesvalid
totalnumberYestotal
passednumberYespassed
failednumberYesfailed
results\{ name: string; valid: boolean; issues: ValidationIssue[]; \}[]Yesresults

SkillsDependenciesParams

PropertyTypeRequiredDescription
namestringYesname
transitiveboolean | undefinedNotransitive

SkillsDependenciesResult

PropertyTypeRequiredDescription
namestringYesname
dependenciesDependencyNode[]Yesdependencies
resolvedstring[]Yesresolved

SkillsInstallParams

PropertyTypeRequiredDescription
namestringYesname
sourcestring | undefinedNosource

SkillsInstallResult

PropertyTypeRequiredDescription
namestringYesname
installedbooleanYesinstalled
versionstringYesversion
pathstringYespath

SkillsUninstallParams

PropertyTypeRequiredDescription
namestringYesname
forceboolean | undefinedNoforce

SkillsUninstallResult

PropertyTypeRequiredDescription
namestringYesname
uninstalledbooleanYesuninstalled

SkillsEnableParams

PropertyTypeRequiredDescription
namestringYesname

SkillsEnableResult

PropertyTypeRequiredDescription
namestringYesname
enabledbooleanYesenabled
statusSkillStatusYesstatus

SkillsDisableParams

PropertyTypeRequiredDescription
namestringYesname
reasonstring | undefinedNoreason

SkillsDisableResult

PropertyTypeRequiredDescription
namestringYesname
disabledbooleanYesdisabled
statusSkillStatusYesstatus

SkillsConfigureParams

PropertyTypeRequiredDescription
namestringYesname
configRecord&lt;string, unknown&gt;Yesconfig

SkillsConfigureResult

PropertyTypeRequiredDescription
namestringYesname
configuredbooleanYesconfigured
configRecord&lt;string, unknown&gt;Yesconfig

SkillsRefreshParams

PropertyTypeRequiredDescription
forceboolean | undefinedNoforce

SkillsRefreshResult

PropertyTypeRequiredDescription
refreshedbooleanYesrefreshed
skillCountnumberYesskillCount
timestampstringYestimestamp

HealthCheck

Common system types
PropertyTypeRequiredDescription
componentstringYescomponent
healthybooleanYeshealthy
messagestring | undefinedNomessage

ProjectStats

PropertyTypeRequiredDescription
tasks\{ total: number; pending: number; active: number; blocked: number; done: number; \}Yestasks
sessions\{ total: number; active: number; \}Yessessions
research\{ total: number; complete: number; \}Yesresearch

SystemVersionParams

any

SystemVersionResult

PropertyTypeRequiredDescription
versionstringYesversion
schemaVersionstringYesschemaVersion
buildDatestringYesbuildDate

SystemDoctorParams

any

SystemDoctorResult

PropertyTypeRequiredDescription
healthybooleanYeshealthy
checksHealthCheck[]Yeschecks
warningsstring[]Yeswarnings
errorsstring[]Yeserrors

SystemConfigGetParams

PropertyTypeRequiredDescription
keystringYeskey

SystemConfigGetResult

PropertyTypeRequiredDescription
keystringYeskey
valueunknownYesvalue
typestringYestype

SystemStatsParams

any

SystemStatsResult

any

SystemContextParams

any

SystemContextResult

PropertyTypeRequiredDescription
currentTokensnumberYescurrentTokens
maxTokensnumberYesmaxTokens
percentUsednumberYespercentUsed
level"high" | "medium" | "critical" | "safe"Yeslevel
estimatedFilesnumberYesestimatedFiles
largestFile\{ path: string; tokens: number; \}YeslargestFile

SystemInitParams

PropertyTypeRequiredDescription
projectType"nodejs" | "python" | "bash" | "typescript" | "rust" | "go" | undefinedNoprojectType
detectboolean | undefinedNodetect

SystemInitResult

PropertyTypeRequiredDescription
initializedbooleanYesinitialized
projectTypestring | undefinedNoprojectType
filesCreatedstring[]YesfilesCreated
detectedFeaturesRecord&lt;string, boolean&gt; | undefinedNodetectedFeatures

SystemConfigSetParams

PropertyTypeRequiredDescription
keystringYeskey
valueunknownYesvalue

SystemConfigSetResult

PropertyTypeRequiredDescription
keystringYeskey
valueunknownYesvalue
previousValueunknownYespreviousValue

SystemBackupParams

PropertyTypeRequiredDescription
type"snapshot" | "safety" | "archive" | "migration" | undefinedNotype
notestring | undefinedNonote

SystemBackupResult

PropertyTypeRequiredDescription
backupIdstringYesbackupId
typestringYestype
timestampstringYestimestamp
filesstring[]Yesfiles
sizenumberYessize

SystemRestoreParams

PropertyTypeRequiredDescription
backupIdstringYesbackupId

SystemRestoreResult

PropertyTypeRequiredDescription
backupIdstringYesbackupId
restoredstringYesrestored
filesRestoredstring[]YesfilesRestored

SystemMigrateParams

PropertyTypeRequiredDescription
versionstring | undefinedNoversion
dryRunboolean | undefinedNodryRun

SystemMigrateResult

PropertyTypeRequiredDescription
fromVersionstringYesfromVersion
toVersionstringYestoVersion
migrations\{ name: string; applied: boolean; error?: string | undefined; \}[]Nomigrations
dryRunbooleanYesdryRun

SystemSyncParams

PropertyTypeRequiredDescription
direction"bidirectional" | "push" | "pull" | undefinedNodirection

SystemSyncResult

PropertyTypeRequiredDescription
directionstringYesdirection
syncedstringYessynced
tasksSyncednumberYestasksSynced
conflicts\{ taskId: string; resolution: string; \}[]Yesconflicts

SystemCleanupParams

PropertyTypeRequiredDescription
type"sessions" | "archive" | "backups" | "logs"Yestype
olderThanstring | undefinedNoolderThan

SystemCleanupResult

PropertyTypeRequiredDescription
typestringYestype
cleanednumberYescleaned
freednumberYesfreed
itemsstring[]Yesitems

TaskPriority

any

TaskOp

PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
descriptionstringYesdescription
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived"Yesstatus
priorityTaskPriority | undefinedNopriority
parentstring | undefinedNoparent
dependsstring[] | undefinedNodepends
labelsstring[] | undefinedNolabels
createdstringYescreated
updatedstringYesupdated
completedstring | undefinedNocompleted
notesstring[] | undefinedNonotes

MinimalTask

PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived"Yesstatus
parentstring | undefinedNoparent

TasksGetParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

TasksGetResult

any

TasksListParams

PropertyTypeRequiredDescription
parentstring | undefinedNoparent
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | undefinedNostatus
priorityTaskPriority | undefinedNopriority
typestring | undefinedNotype
phasestring | undefinedNophase
labelstring | undefinedNolabel
childrenboolean | undefinedNochildren
limitnumber | undefinedNolimit
offsetnumber | undefinedNooffset
compactboolean | undefinedNocompact

TasksListResult

PropertyTypeRequiredDescription
tasksTaskOp[]Yestasks
totalnumberYestotal
filterednumberYesfiltered

TasksFindParams

PropertyTypeRequiredDescription
querystringYesquery
limitnumber | undefinedNolimit

TasksFindResult

any

TasksExistsParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

TasksExistsResult

PropertyTypeRequiredDescription
existsbooleanYesexists
taskIdstringYestaskId

TasksTreeParams

PropertyTypeRequiredDescription
rootIdstring | undefinedNorootId
depthnumber | undefinedNodepth

TaskTreeNode

PropertyTypeRequiredDescription
taskTaskOpYestask
childrenTaskTreeNode[]Yeschildren
depthnumberYesdepth

TasksTreeResult

any

TasksBlockersParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

Blocker

PropertyTypeRequiredDescription
taskIdstringYestaskId
titlestringYestitle
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived"Yesstatus
blockType"gate" | "parent" | "dependency"YesblockType

TasksBlockersResult

any

TasksDepsParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
direction"upstream" | "downstream" | "both" | undefinedNodirection

TaskDependencyNode

PropertyTypeRequiredDescription
taskIdstringYestaskId
titlestringYestitle
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived"Yesstatus
distancenumberYesdistance

TasksDepsResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
upstreamTaskDependencyNode[]Yesupstream
downstreamTaskDependencyNode[]Yesdownstream

TasksAnalyzeParams

PropertyTypeRequiredDescription
epicIdstring | undefinedNoepicId

TriageRecommendation

PropertyTypeRequiredDescription
taskIdstringYestaskId
titlestringYestitle
prioritynumberYespriority
reasonstringYesreason
readiness"pending" | "blocked" | "ready"Yesreadiness

TasksAnalyzeResult

any

TasksNextParams

PropertyTypeRequiredDescription
epicIdstring | undefinedNoepicId
countnumber | undefinedNocount

SuggestedTask

PropertyTypeRequiredDescription
taskIdstringYestaskId
titlestringYestitle
scorenumberYesscore
rationalestringYesrationale

TasksNextResult

any

TasksCreateParams

PropertyTypeRequiredDescription
titlestringYestitle
descriptionstringYesdescription
parentstring | undefinedNoparent
dependsstring[] | undefinedNodepends
priorityTaskPriority | undefinedNopriority
labelsstring[] | undefinedNolabels

TasksCreateResult

any

TasksUpdateParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
titlestring | undefinedNotitle
descriptionstring | undefinedNodescription
status"cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | undefinedNostatus
priorityTaskPriority | undefinedNopriority
notesstring | undefinedNonotes
parentstring | null | undefinedNoparent
labelsstring[] | undefinedNolabels
addLabelsstring[] | undefinedNoaddLabels
removeLabelsstring[] | undefinedNoremoveLabels
dependsstring[] | undefinedNodepends
addDependsstring[] | undefinedNoaddDepends
removeDependsstring[] | undefinedNoremoveDepends
typestring | undefinedNotype
sizestring | undefinedNosize

TasksUpdateResult

any

TasksCompleteParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
notesstring | undefinedNonotes
archiveboolean | undefinedNoarchive

TasksCompleteResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
completedstringYescompleted
archivedbooleanYesarchived

TasksDeleteParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
forceboolean | undefinedNoforce

TasksDeleteResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
deletedtrueYesdeleted

TasksArchiveParams

PropertyTypeRequiredDescription
taskIdstring | undefinedNotaskId
beforestring | undefinedNobefore

TasksArchiveResult

PropertyTypeRequiredDescription
archivednumberYesarchived
taskIdsstring[]YestaskIds

TasksUnarchiveParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

TasksUnarchiveResult

any

TasksReparentParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
newParentstringYesnewParent

TasksReparentResult

any

TasksPromoteParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

TasksPromoteResult

any

TasksReorderParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
positionnumberYesposition

TasksReorderResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
newPositionnumberYesnewPosition

TasksReopenParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

TasksReopenResult

any

TasksStartParams

PropertyTypeRequiredDescription
taskIdstringYestaskId

TasksStartResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
sessionIdstringYessessionId
timestampstringYestimestamp

TasksStopParams

any

TasksStopResult

PropertyTypeRequiredDescription
stoppedtrueYesstopped
previousTaskstring | undefinedNopreviousTask

TasksCurrentParams

any

TasksCurrentResult

PropertyTypeRequiredDescription
taskIdstring | nullYestaskId
sincestring | undefinedNosince
sessionIdstring | undefinedNosessionId

ValidationSeverity

Common validation types
any

ValidationViolation

PropertyTypeRequiredDescription
rulestringYesrule
severityValidationSeverityYesseverity
messagestringYesmessage
fieldstring | undefinedNofield
valueunknownYesvalue
expectedunknownYesexpected
linenumber | undefinedNoline

ComplianceMetrics

PropertyTypeRequiredDescription
totalnumberYestotal
passednumberYespassed
failednumberYesfailed
scorenumberYesscore
byProtocolRecord&lt;string, \{ passed: number; failed: number; \}>YesbyProtocol
bySeverityRecord&lt;ValidationSeverity, number&gt;YesbySeverity

ValidateSchemaParams

PropertyTypeRequiredDescription
fileType"manifest" | "config" | "archive" | "todo" | "log"YesfileType
filePathstring | undefinedNofilePath

ValidateSchemaResult

PropertyTypeRequiredDescription
validbooleanYesvalid
schemaVersionstringYesschemaVersion
violationsValidationViolation[]Yesviolations

ValidateProtocolParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
protocolType"research" | "consensus" | "specification" | "decomposition" | "implementation" | "release" | "contribution"YesprotocolType

ValidateProtocolResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
protocolstringYesprotocol
passedbooleanYespassed
scorenumberYesscore
violationsValidationViolation[]Yesviolations
requirements\{ total: number; met: number; failed: number; \}Yesrequirements

ValidateTaskParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
checkMode"strict" | "basic" | "anti-hallucination"YescheckMode

ValidateTaskResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
validbooleanYesvalid
violationsValidationViolation[]Yesviolations
checks\{ idUniqueness: boolean; titleDescriptionDifferent: boolean; validStatus: boolean; noFutureTimestamps: boolean; noDuplicateDescription: boolean; \}Yeschecks

ValidateManifestParams

PropertyTypeRequiredDescription
entrystring | undefinedNoentry
taskIdstring | undefinedNotaskId

ValidateManifestResult

PropertyTypeRequiredDescription
validbooleanYesvalid
entry\{ id: string; file: string; exists: boolean; \}Yesentry
violationsValidationViolation[]Yesviolations

ValidateOutputParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
filePathstringYesfilePath

ValidateOutputResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
filePathstringYesfilePath
validbooleanYesvalid
checks\{ fileExists: boolean; hasTaskHeader: boolean; hasStatus: boolean; hasSummary: boolean; linkedToTask: boolean; \}Yeschecks
violationsValidationViolation[]Yesviolations

ValidateComplianceSummaryParams

PropertyTypeRequiredDescription
scopestring | undefinedNoscope
sincestring | undefinedNosince

ValidateComplianceSummaryResult

any

ValidateComplianceViolationsParams

PropertyTypeRequiredDescription
severityValidationSeverity | undefinedNoseverity
protocolstring | undefinedNoprotocol

ValidateComplianceViolationsResult

PropertyTypeRequiredDescription
violations(ValidationViolation & \{ taskId: string; protocol: string; timestamp: string; \})[]Yesviolations
totalnumberYestotal

ValidateTestStatusParams

PropertyTypeRequiredDescription
taskIdstring | undefinedNotaskId

ValidateTestStatusResult

PropertyTypeRequiredDescription
totalnumberYestotal
passednumberYespassed
failednumberYesfailed
skippednumberYesskipped
passRatenumberYespassRate
byTaskRecord&lt;string, \{ passed: number; failed: number; \}> | undefinedNobyTask

ValidateTestCoverageParams

PropertyTypeRequiredDescription
taskIdstring | undefinedNotaskId

ValidateTestCoverageResult

PropertyTypeRequiredDescription
lineCoveragenumberYeslineCoverage
branchCoveragenumberYesbranchCoverage
functionCoveragenumberYesfunctionCoverage
statementCoveragenumberYesstatementCoverage
thresholdnumberYesthreshold
meetsThresholdbooleanYesmeetsThreshold

ValidateComplianceRecordParams

PropertyTypeRequiredDescription
taskIdstringYestaskId
resultValidateProtocolResultYesresult

ValidateComplianceRecordResult

PropertyTypeRequiredDescription
taskIdstringYestaskId
recordedstringYesrecorded
metricsComplianceMetricsYesmetrics

ValidateTestRunParams

PropertyTypeRequiredDescription
scopestring | undefinedNoscope
patternstring | undefinedNopattern
parallelboolean | undefinedNoparallel

ValidateTestRunResult

PropertyTypeRequiredDescription
statusValidateTestStatusResultYesstatus
coverageValidateTestCoverageResultYescoverage
durationstringYesduration
outputstring | undefinedNooutput

TaskRecordRelation

A single task relation entry (string-widened version).
PropertyTypeRequiredDescription
taskIdstringYestaskId
typestringYestype
reasonstring | undefinedNoreason

ValidationHistoryEntry

Validation history entry.
PropertyTypeRequiredDescription
roundnumberYesround
agentstringYesagent
resultstringYesresult
timestampstringYestimestamp

TaskRecord

String-widened Task for JSON serialization in dispatch/LAFS layer.
PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
descriptionstringYesdescription
statusstringYesstatus
prioritystringYespriority
typestring | undefinedNotype
phasestring | undefinedNophase
createdAtstringYescreatedAt
updatedAtstring | nullYesupdatedAt
completedAtstring | null | undefinedNocompletedAt
cancelledAtstring | null | undefinedNocancelledAt
parentIdstring | null | undefinedNoparentId
positionnumber | null | undefinedNoposition
positionVersionnumber | undefinedNopositionVersion
dependsstring[] | undefinedNodepends
relatesTaskRecordRelation[] | undefinedNorelates
filesstring[] | undefinedNofiles
acceptancestring[] | undefinedNoacceptance
notesstring[] | undefinedNonotes
labelsstring[] | undefinedNolabels
sizestring | null | undefinedNosize
epicLifecyclestring | null | undefinedNoepicLifecycle
noAutoCompleteboolean | null | undefinedNonoAutoComplete
verificationTaskVerification | null | undefinedNoverification
originstring | null | undefinedNoorigin
createdBystring | null | undefinedNocreatedBy
validatedBystring | null | undefinedNovalidatedBy
testedBystring | null | undefinedNotestedBy
lifecycleStatestring | null | undefinedNolifecycleState
validationHistoryValidationHistoryEntry[] | undefinedNovalidationHistory
blockedBystring[] | undefinedNoblockedBy
cancellationReasonstring | undefinedNocancellationReason

MinimalTaskRecord

Minimal task representation for find results.
PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
statusstringYesstatus
prioritystringYespriority
parentIdstring | null | undefinedNoparentId

TaskSummary

Task summary counts used in dashboard and stats views.
PropertyTypeRequiredDescription
pendingnumberYespending
activenumberYesactive
blockednumberYesblocked
donenumberYesdone
cancellednumberYescancelled
totalnumberYestotal
archivednumberYesarchived
grandTotalnumberYesgrandTotal

LabelCount

Label frequency entry.
PropertyTypeRequiredDescription
labelstringYeslabel
countnumberYescount

DashboardResult

Dashboard result from system.dash query.
PropertyTypeRequiredDescription
projectstringYesproject
currentPhasestring | nullYescurrentPhase
summaryTaskSummaryYessummary
taskWork\{ currentTask: string | null; task: TaskRecord | null; \}YestaskWork
activeSessionstring | nullYesactiveSession
highPriority\{ count: number; tasks: TaskRecord[]; \}YeshighPriority
blockedTasks\{ count: number; limit: number; tasks: TaskRecord[]; \}YesblockedTasks
recentCompletionsTaskRecord[]YesrecentCompletions
topLabelsLabelCount[]YestopLabels

StatsCurrentState

Current state counts used in stats results.
PropertyTypeRequiredDescription
pendingnumberYespending
activenumberYesactive
donenumberYesdone
blockednumberYesblocked
cancellednumberYescancelled
totalActivenumberYestotalActive
archivednumberYesarchived
grandTotalnumberYesgrandTotal

StatsCompletionMetrics

Completion metrics for a given time period.
PropertyTypeRequiredDescription
periodDaysnumberYesperiodDays
completedInPeriodnumberYescompletedInPeriod
createdInPeriodnumberYescreatedInPeriod
completionRatenumberYescompletionRate

StatsActivityMetrics

Activity metrics for a given time period.
PropertyTypeRequiredDescription
createdInPeriodnumberYescreatedInPeriod
completedInPeriodnumberYescompletedInPeriod
archivedInPeriodnumberYesarchivedInPeriod

StatsAllTime

All-time cumulative statistics.
PropertyTypeRequiredDescription
totalCreatednumberYestotalCreated
totalCompletednumberYestotalCompleted
totalCancellednumberYestotalCancelled
totalArchivednumberYestotalArchived
archivedCompletednumberYesarchivedCompleted

StatsCycleTimes

Cycle time statistics.
PropertyTypeRequiredDescription
averageDaysnumber | nullYesaverageDays
samplesnumberYessamples

StatsResult

Stats result from system.stats query.
PropertyTypeRequiredDescription
currentStateStatsCurrentStateYescurrentState
byPriorityRecord&lt;string, number&gt;YesbyPriority
byTypeRecord&lt;string, number&gt;YesbyType
byPhaseRecord&lt;string, number&gt;YesbyPhase
completionMetricsStatsCompletionMetricsYescompletionMetrics
activityMetricsStatsActivityMetricsYesactivityMetrics
allTimeStatsAllTimeYesallTime
cycleTimesStatsCycleTimesYescycleTimes

LogQueryResult

Log query result from system.log query.
PropertyTypeRequiredDescription
entries\{ [key: string]: unknown; operation: string; taskId?: string | undefined; timestamp: string; \}[]Noentries
pagination\{ total: number; offset: number; limit: number; hasMore: boolean; \}Yespagination

ContextResult

Context monitoring data from system.context query.
PropertyTypeRequiredDescription
availablebooleanYesavailable
statusstringYesstatus
percentagenumberYespercentage
currentTokensnumberYescurrentTokens
maxTokensnumberYesmaxTokens
timestampstring | nullYestimestamp
stalebooleanYesstale
sessions\{ file: string; sessionId: string | null; percentage: number; status: string; timestamp: string; \}[]Yessessions

SequenceResult

Sequence counter data from system.sequence query.
PropertyTypeRequiredDescription
counternumberYescounter
lastIdstringYeslastId
checksumstringYeschecksum
nextIdstringYesnextId

TaskRef

Compact task reference used across analysis and dependency results.
PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
statusstringYesstatus

TaskRefPriority

Task reference with optional priority (used in orchestrator/HITL contexts).
any

LeveragedTask

Task with leverage score for prioritization.
PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
leveragenumberYesleverage
reasonstring | undefinedNoreason

BottleneckTask

Bottleneck task — blocks other tasks.
PropertyTypeRequiredDescription
idstringYesid
titlestringYestitle
blocksCountnumberYesblocksCount

TaskAnalysisResult

Task analysis result from tasks.analyze.
PropertyTypeRequiredDescription
recommended(LeveragedTask & \{ reason: string; \}) | nullYesrecommended
bottlenecksBottleneckTask[]Yesbottlenecks
tiers\{ critical: LeveragedTask[]; high: LeveragedTask[]; normal: LeveragedTask[]; \}Yestiers
metrics\{ totalTasks: number; actionable: number; blocked: number; avgLeverage: number; \}Yesmetrics

TaskDepsResult

Single task dependency result from tasks.deps.
PropertyTypeRequiredDescription
taskIdstringYestaskId
dependsOnTaskRef[]YesdependsOn
dependedOnByTaskRef[]YesdependedOnBy
unresolvedDepsstring[]YesunresolvedDeps
allDepsReadybooleanYesallDepsReady

CompleteTaskUnblocked

Completion result — unblocked tasks after completing a task.
PropertyTypeRequiredDescription
unblockedTasksTaskRef[] | undefinedNounblockedTasks

Provider

Provider identifier for spawn operations.
any

CAAMPSpawnOptions

CAAMP-compatible spawn options (inlined for zero-dep contracts).

CAAMPSpawnResult

CAAMP-compatible spawn result (inlined for zero-dep contracts).
PropertyTypeRequiredDescription
instanceIdstringYesinstanceId
outputstringYesoutput
exitCodenumberYesexitCode

CLEOSpawnContext

CLEO-specific spawn context Extends CAAMP options with CLEO task and protocol metadata
PropertyTypeRequiredDescription
taskIdstringYesTask ID being spawned
protocolstringYesProtocol to use for the spawned task
promptstringYesFully-resolved prompt to send to subagent
providerstringYesProvider to use for spawning
optionsCAAMPSpawnOptionsYesCAAMP-compatible spawn options
workingDirectorystring | undefinedNoProject root or working directory for provider-specific files and process execution
tokenResolutionTokenResolution | undefinedNoToken resolution information for the prompt

CLEOSpawnResult

CLEO spawn result Extends CAAMP SpawnResult with CLEO-specific timing and metadata
PropertyTypeRequiredDescription
taskIdstringYesTask ID that was spawned
providerIdstringYesProvider ID used for the spawn
timing\{ startTime: string; endTime?: string | undefined; durationMs?: number | undefined; \}NoTiming information for the spawn operation
manifestEntryIdstring | undefinedNoReference to manifest entry if output was captured

CLEOSpawnAdapter

Spawn adapter interface Wraps CAAMP SpawnAdapter with CLEO-specific context and result types
PropertyTypeRequiredDescription
idstringYesUnique identifier for this adapter instance
providerIdstringYesProvider ID this adapter uses
canSpawn() => Promise&lt;boolean&gt;YesCheck if this adapter can spawn in the current environment
spawn(context: CLEOSpawnContext) => Promise&lt;CLEOSpawnResult&gt;YesExecute a spawn using the provider’s native mechanism
listRunning() => Promise&lt;CLEOSpawnResult[]>YesList currently running spawns
terminate(instanceId: string) => Promise&lt;void&gt;YesTerminate a running spawn

TokenResolution

Token resolution information for prompt processing
PropertyTypeRequiredDescription
resolvedstring[]YesArray of resolved token identifiers
unresolvedstring[]YesArray of unresolved token identifiers
totalTokensnumberYesTotal number of tokens processed

SpawnStatus

Spawn status values
any

ProtocolType

All supported protocol types.
any

GateName

Verification gate names (ordered dependency chain).
any

WarpStage

A single stage in the warp chain. The category union includes all canonical CLEO pipeline stages plus ‘custom’ for user-defined stages.
PropertyTypeRequiredDescription
idstringYesid
namestringYesname
category"custom" | "research" | "consensus" | "specification" | "decomposition" | "implementation" | "validation" | "testing" | "release" | "contribution" | "architecture"Yescategory
skippablebooleanYesskippable
descriptionstring | undefinedNodescription
Connection between two stages in the chain.
PropertyTypeRequiredDescription
fromstringYesfrom
tostringYesto
type"linear" | "fork" | "branch"Yestype
conditionstring | undefinedNocondition

ChainShape

The topology/DAG of a workflow.
PropertyTypeRequiredDescription
stagesWarpStage[]Yesstages
linksWarpLink[]Yeslinks
entryPointstringYesentryPoint
exitPointsstring[]YesexitPoints

GateCheck

Discriminated union for gate check types.
any

GateContract

A quality gate embedded in the chain.
PropertyTypeRequiredDescription
idstringYesid
namestringYesname
type"entry" | "exit" | "checkpoint"Yestype
stageIdstringYesstageId
position"before" | "after"Yesposition
checkGateCheckYescheck
severity"warning" | "info" | "blocking"Yesseverity
canForcebooleanYescanForce

WarpChain

Complete chain definition combining shape and gates.
PropertyTypeRequiredDescription
idstringYesid
namestringYesname
versionstringYesversion
descriptionstringYesdescription
shapeChainShapeYesshape
gatesGateContract[]Yesgates
tesserastring | undefinedNotessera
metadataRecord&lt;string, unknown&gt; | undefinedNometadata

ChainValidation

Result of validating a chain definition.
PropertyTypeRequiredDescription
wellFormedbooleanYeswellFormed
gateSatisfiablebooleanYesgateSatisfiable
artifactCompletebooleanYesartifactComplete
errorsstring[]Yeserrors
warningsstring[]Yeswarnings

WarpChainInstance

A chain bound to a specific epic.
PropertyTypeRequiredDescription
idstringYesid
chainIdstringYeschainId
epicIdstringYesepicId
variablesRecord&lt;string, unknown&gt;Yesvariables
stageToTaskRecord&lt;string, string&gt;YesstageToTask
status"completed" | "failed" | "cancelled" | "pending" | "active"Yesstatus
currentStagestringYescurrentStage
createdAtstringYescreatedAt
createdBystringYescreatedBy

GateResult

Result of evaluating a single gate.
PropertyTypeRequiredDescription
gateIdstringYesgateId
passedbooleanYespassed
forcedbooleanYesforced
messagestring | undefinedNomessage
evaluatedAtstringYesevaluatedAt

WarpChainExecution

Runtime state of a chain instance execution.
PropertyTypeRequiredDescription
instanceIdstringYesinstanceId
currentStagestringYescurrentStage
gateResultsGateResult[]YesgateResults
status"running" | "completed" | "failed" | "paused"Yesstatus
startedAtstringYesstartedAt
completedAtstring | undefinedNocompletedAt

TesseraVariable

A variable declaration within a Tessera template.
PropertyTypeRequiredDescription
namestringYesname
type"string" | "number" | "boolean" | "epicId" | "taskId"Yestype
descriptionstringYesdescription
requiredbooleanYesrequired
defaultunknownYesdefault

TesseraTemplate

A parameterized WarpChain template with variable bindings.
PropertyTypeRequiredDescription
variablesRecord&lt;string, TesseraVariable&gt;Yesvariables
archetypesstring[]Yesarchetypes
defaultValuesRecord&lt;string, unknown&gt;YesdefaultValues
category"custom" | "research" | "lifecycle" | "hotfix" | "security-audit"Yescategory

TesseraInstantiationInput

Input for instantiating a Tessera template into a concrete chain.
PropertyTypeRequiredDescription
templateIdstringYestemplateId
epicIdstringYesepicId
variablesRecord&lt;string, unknown&gt;Yesvariables