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

LoggerConfig

PlatformPaths

OS-appropriate paths for CLEO’s global directories.

SystemInfo

Immutable system information snapshot, captured once per process.

RequiredColumn

Required column definition for ensureColumns().

VacuumOptions

AgentInstanceRow

NewAgentInstanceRow

AgentErrorLogRow

NewAgentErrorLogRow

AgentInstanceStatus

AgentType

AgentErrorType

WarpChainRow

NewWarpChainRow

WarpChainInstanceRow

NewWarpChainInstanceRow

StatusRegistryRow

TaskRow

NewTaskRow

SessionRow

NewSessionRow

TaskDependencyRow

TaskRelationRow

WorkHistoryRow

LifecyclePipelineRow

NewLifecyclePipelineRow

LifecycleStageRow

NewLifecycleStageRow

LifecycleGateResultRow

NewLifecycleGateResultRow

LifecycleEvidenceRow

NewLifecycleEvidenceRow

LifecycleTransitionRow

NewLifecycleTransitionRow

AuditLogRow

NewAuditLogRow

TokenUsageRow

NewTokenUsageRow

ArchitectureDecisionRow

NewArchitectureDecisionRow

AdrTaskLinkRow

NewAdrTaskLinkRow

AdrRelationRow

NewAdrRelationRow

ManifestEntryRow

NewManifestEntryRow

PipelineManifestRow

NewPipelineManifestRow

ReleaseManifestRow

NewReleaseManifestRow

ExternalTaskLinkRow

NewExternalTaskLinkRow

BrainDecisionRow

NewBrainDecisionRow

BrainPatternRow

NewBrainPatternRow

BrainLearningRow

NewBrainLearningRow

BrainObservationRow

NewBrainObservationRow

BrainMemoryLinkRow

NewBrainMemoryLinkRow

BrainPageNodeRow

NewBrainPageNodeRow

BrainPageEdgeRow

NewBrainPageEdgeRow

BrainStickyNoteRow

NewBrainStickyNoteRow

ProjectRegistryRow

NewProjectRegistryRow

NexusAuditLogRow

NewNexusAuditLogRow

NexusSchemaMetaRow

NewNexusSchemaMetaRow

ErrorDefinition

A single entry in the unified error catalog.

ProblemDetails

RFC 9457 Problem Details object. Structured error representation for API responses. T5240

ArchiveFields

Archive-specific fields for task upsert.

RegisterAgentOptions

Options for registering a new agent instance.

UpdateStatusOptions

Options for updating agent status.

ListAgentFilters

Filters for listing agent instances.

AgentHealthReport

Agent health report summary.

AtomicMigrationResult

Atomic database migration result.

ReleaseFn

A release function returned by acquireLock.

ProviderHookEvent

CAAMP canonical hook event type. This is the normalized 16-event taxonomy from CAAMP 1.9.1.

InternalHookEvent

HookEvent

Full CLEO hook event union. CAAMP defines provider-facing canonical events; CLEO extends the registry with local coordination events for autonomous execution.

HookPayload

Base interface for all hook payloads Provides common fields available across all hook events

SessionStartPayload

Payload for SessionStart hook (canonical: was onSessionStart) Fired when a CLEO session begins

OnSessionStartPayload

Deprecated: Use SessionStartPayload instead. Kept for backward compatibility.

SessionEndPayload

Payload for SessionEnd hook (canonical: was onSessionEnd) Fired when a CLEO session ends

OnSessionEndPayload

Deprecated: Use SessionEndPayload instead. Kept for backward compatibility.

PreToolUsePayload

Payload for PreToolUse hook (canonical: was onToolStart) Fired when a task/tool operation begins

OnToolStartPayload

Deprecated: Use PreToolUsePayload instead. Kept for backward compatibility.

PostToolUsePayload

Payload for PostToolUse hook (canonical: was onToolComplete) Fired when a task/tool operation completes

OnToolCompletePayload

Deprecated: Use PostToolUsePayload instead. Kept for backward compatibility.

HookHandler

Handler function type for hook events Handlers receive project root and typed payload

HookRegistration

Hook registration metadata Tracks registered handlers with priority and event binding

HookConfig

Configuration for the hook system Controls which events are enabled/disabled

NotificationPayload

Payload for Notification hook (canonical: was onFileChange) Fired when a tracked file is written, created, or deleted, or for general-purpose notifications.

OnFileChangePayload

Deprecated: Use NotificationPayload instead. Kept for backward compatibility.

PostToolUseFailurePayload

Payload for PostToolUseFailure hook (canonical: was onError) Fired when an operation fails with a structured error

OnErrorPayload

Deprecated: Use PostToolUseFailurePayload instead. Kept for backward compatibility.

PromptSubmitPayload

Payload for PromptSubmit hook (canonical: was onPromptSubmit) Fired when an agent submits a prompt through a gateway

OnPromptSubmitPayload

Deprecated: Use PromptSubmitPayload instead. Kept for backward compatibility.

ResponseCompletePayload

Payload for ResponseComplete hook (canonical: was onResponseComplete) Fired when a gateway operation finishes (success or failure)

OnResponseCompletePayload

Deprecated: Use ResponseCompletePayload instead. Kept for backward compatibility.

SubagentStartPayload

Payload for SubagentStart hook Fired when a subagent process is launched

SubagentStopPayload

Payload for SubagentStop hook Fired when a subagent process completes

PreCompactPayload

Payload for PreCompact hook Fired before context compaction begins

PostCompactPayload

Payload for PostCompact hook Fired after context compaction completes

ConfigChangePayload

Payload for ConfigChange hook Fired when configuration is updated

OnWorkAvailablePayload

Payload for onWorkAvailable hook Fired when the system detects ready work on a Loom/Tapestry

OnAgentSpawnPayload

Payload for onAgentSpawn hook Fired when a worker session/process is launched

OnAgentCompletePayload

Payload for onAgentComplete hook Fired when a worker finishes its assigned run

OnCascadeStartPayload

Payload for onCascadeStart hook Fired when autonomous execution begins flowing through a chain or wave

OnPatrolPayload

Payload for onPatrol hook Fired when a watcher performs a periodic health/sweep cycle

CLEOLifecycleEvent

Type for CLEO lifecycle event names These are the internal events CLEO fires that get mapped to CAAMP events

CLEOAutonomousLifecycleEvent

Type for autonomous CLEO lifecycle events.

SaveJsonOptions

Options for saveJson.

CheckpointConfig

Checkpoint configuration.

CheckpointStatus

Checkpoint status information.

ChangedFile

Changed file with its status.

SafetyOptions

Safety configuration - can be overridden per-operation

RepairResult

Repair result with proper typing.

SafetyConfig

Safety configuration options.

NextDirectives

Map of follow-up operation names to CLI command strings.

TaskDetail

Enriched task with hierarchy info.

PaginateInput

Input parameters for paginating a result set. T4668 T4663

CompactTask

Compact task representation — minimal fields for list responses.

ListTasksOptions

Filter options for listing tasks.

ListTasksResult

Result of listing tasks.

FindResult

Minimal task info for search results.

FindTasksOptions

Options for finding tasks.

FindTasksResult

Result of finding tasks.

AdrFrontmatter

Parsed ADR frontmatter from .md file

AdrRecord

AdrSyncResult

AdrListResult

AdrFindResult

PipelineAdrLinkResult

EvidenceType

EvidenceRecord

Related link in frontmatter.

FrontmatterMetadata

Frontmatter metadata for an RCASD artifact.

ParsedFrontmatter

Result of parsing frontmatter from a markdown file.

Stage

Stage type derived from canonical stage list. T4800

StageCategory

Stage category for grouping related stages. T4800

StageDefinition

Stage metadata with descriptive information. T4800

TransitionRule

Transition rule - defines if a transition is allowed. T4800

StageArtifactResult

SkillFrontmatter

Skill frontmatter parsed from SKILL.md YAML header. This is CLEO’s extended skill metadata — a functional superset of CAAMP’s SkillMetadata. All fields from CaampSkillMetadata (name, description, version, allowedTools) are present here. CLEO adds: tags, triggers, dispatchPriority, model, invocable, command, protocol. Use this type when working with CLEO’s skill loading, dispatch, and orchestration systems. Use CaampSkillMetadata when interfacing directly with CAAMP’s discovery/install APIs.

Skill

Skill definition loaded from disk. CLEO-specific type that wraps a SkillFrontmatter with filesystem context. For CAAMP’s equivalent, see CtSkillEntry which wraps CaampSkillMetadata with install/discovery metadata instead.

SkillSummary

Lightweight skill summary for manifest/listing. Projected from Skill for efficient caching in SkillManifest. Contains only the fields needed for CLI display and dispatch selection.

SkillManifest

Skill manifest (cached aggregate of all discovered skills).

SkillProtocolType

RCASD-IVTR+C protocol types.

AgentConfig

Agent configuration from AGENT.md or agent definition.

AgentRegistryEntry

Agent registry entry.

AgentRegistry

Agent registry (persisted).

SkillSearchScope

CAAMP search order for skill discovery.

SkillSearchPath

Ordered search path entry.

DispatchStrategy

Dispatch strategy for skill selection.

DispatchResult

Dispatch result from skill_auto_dispatch.

TokenDefinition

Token definition from placeholders.json.

TokenValidationResult

Token validation result.

TokenContext

Token injection context.

OrchestratorThresholds

Orchestrator context thresholds.

PreSpawnCheckResult

Pre-spawn check result.

SpawnPromptResult

Spawn prompt result.

DependencyWave

Dependency wave for parallel execution.

DependencyAnalysis

Dependency analysis result.

HitlSummary

HITL summary for session handoff.

ManifestEntry

Research manifest entry (pipeline_manifest table, ADR-027).

ManifestValidationResult

Manifest validation result.

ComplianceResult

Compliance verification result.

InstalledSkill

Installed skill tracking.

InstalledSkillsFile

Installed skills file.

TokenValues

Token values map: TOKEN_NAME - value.

MultiSkillComposition

Result of multi-skill composition.

StageGuidance

Structured guidance for a single pipeline stage. Pi extensions consume the .prompt field directly (render via { systemPrompt } in before_agent_start). The structured fields are exposed for TUI widgets, badges, and logging.

EnforcementMode

Lifecycle enforcement modes.

GateData

Gate data within a stage.

ManifestStageData

Stage data in an on-disk manifest.

RcasdManifest

Canonical RCASD manifest-shaped interface for compatibility payloads. Lifecycle persistence is SQLite-native; this shape is used for API responses that present stage+gate state in a manifest-like structure. Stage keys use full canonical names matching the DB CHECK constraint: research, consensus, architecture_decision, specification, decomposition, implementation, validation, testing, release. T4798

GateCheckResult

Gate check result.

StageTransitionResult

Stage transition result.

LifecycleHistoryEntry

History entry for stage transitions.

AlertLevel

Alert level names.

AlertCheckResult

Alert result from check_context_alert.

FormatOptions

Options for envelope formatting. T4668 T4670 T4663

CleoRegistryEntry

Entry in the CLEO-to-LAFS error registry. T4671 T4663

TestDbEnv

Result of creating a test database environment.

HierarchyValidation

Validate that adding a child to a parent would not violate constraints.

TaskTreeNode

Build a tree structure from flat task list.

HierarchyPolicy

HierarchyValidationResult

StrictnessPreset

Valid preset names.

PresetDefinition

A preset definition: the config keys it sets and a human description.

ApplyPresetResult

Result of applying a preset.

SessionRecord

Session object (engine-compatible).

TaskWorkStateExt

Task work state from the task store. Extends the strict contracts TaskWorkState with required-null fields for session engine compatibility. The engine layer always expects these fields to be present (even if null), whereas the contracts type marks them as optional.

DecisionRecord

Decision record stored in decisions.jsonl.

AssumptionRecord

Assumption record stored in assumptions.jsonl.

RecordDecisionParams

DecisionLogParams

HandoffData

Handoff data schema - structured state for session transition.

ComputeHandoffOptions

Options for computing handoff data.

GitState

Git state snapshot captured at session end.

DebriefDecision

Decision summary for debrief output.

DebriefData

Rich debrief data — superset of HandoffData. Captures comprehensive session state for cross-conversation continuity. T4959

ComputeDebriefOptions

Options for computing debrief data.

BrainFtsRow

Row returned by FTS content_hash duplicate check (brain-retrieval.ts observeBrain).

BrainNarrativeRow

Row returned by narrative backfill query (brain-retrieval.ts populateEmbeddings).

BrainSearchHit

Flattened FTS hit used in hybrid search scoring (brain-search.ts hybridSearch).

BrainKnnRow

Row returned by KNN vector similarity query (brain-similarity.ts searchSimilar).

BrainDecisionNode

Decision node attached to a blocker in causal traces (brain-reasoning.ts reasonWhy).

BrainAnchor

Anchor entry in a timeline result (brain-retrieval.ts timelineBrain).

BrainTimelineNeighborRow

Row returned by timeline UNION ALL neighbor queries (brain-retrieval.ts timelineBrain). Represents an entry from any of the four brain tables projected to a common id, type, date shape for chronological ordering.

BrainConsolidationObservationRow

Row returned by the consolidation observation query (brain-lifecycle.ts consolidateMemories). Fetches old observations for keyword-based clustering and archival. Uses snake_case column names matching the raw SQLite row shape.

BrainIdCheckRow

Row returned by ID existence check queries (claude-mem-migration.ts). Used by SELECT id FROM brain_observations WHERE id = ? and similar single-column lookups for idempotent migration dedup.

EmbeddingProvider

Contract for embedding providers (local models, API services, etc.).

SimilarityResult

BrainSearchResult

Search result with BM25 rank.

BrainSearchOptions

Search options.

HybridResult

Result from hybridSearch combining multiple search signals.

HybridSearchOptions

Options for hybridSearch weighting and limits.

MemoryBridgeConfig

Configuration for memory bridge content generation.

BrainCompactHit

Compact search hit — minimal fields for index-level results.

SearchBrainCompactParams

Parameters for searchBrainCompact.

SearchBrainCompactResult

Result from searchBrainCompact.

TimelineBrainParams

Parameters for timelineBrain.

TimelineNeighbor

Timeline entry — compact id/type/date tuple.

TimelineBrainResult

Result from timelineBrain.

FetchBrainEntriesParams

Parameters for fetchBrainEntries.

FetchedBrainEntry

Fetched entry with full data.

FetchBrainEntriesResult

Result from fetchBrainEntries.

BrainObservationType

Observation type from schema.

BrainObservationSourceType

Observation source type from schema.

ObserveBrainParams

Parameters for observeBrain.

ObserveBrainResult

Result from observeBrain.

PopulateEmbeddingsResult

Result from populateEmbeddings backfill.

PopulateEmbeddingsOptions

Options for the embedding backfill pipeline.

AuditEntry

Audit entry interface. Used by session-grade and system-engine for behavioral analysis.

StoreLearningParams

Parameters for storing a new learning.

SearchLearningParams

Parameters for searching learnings.

DimensionScore

GradeResult

AdapterInfo

Summary info for an adapter without exposing the full instance.

SessionBridgeData

Session data needed to create a memory bridge observation.

StoreDecisionParams

Parameters for storing a new decision.

SearchDecisionParams

Parameters for searching decisions.

ListDecisionParams

Parameters for listing decisions.

PatternType

Pattern types from ADR-009.

PatternImpact

Impact level.

StorePatternParams

Parameters for storing a new pattern.

SearchPatternParams

Parameters for searching patterns.

RecordAssumptionParams

BulkLinkEntry

A link to be created in bulk.

SessionMemoryResult

Result of persisting session memory to brain.db.

MemoryItem

A memory item to be persisted to brain.db.

SessionMemoryContext

Memory context returned for session start/resume enrichment.

Pipeline

Pipeline entity representing a task’s lifecycle state. T4800 T4799 - Unified pipeline structure replaces scattered manifests

PipelineStageRecord

Pipeline stage record linking pipeline to individual stages. T4800 T4801 - Requires pipeline_stages table

PipelineTransition

Pipeline transition record for audit trail. T4800 T4801 - Requires pipeline_transitions table

InitializePipelineOptions

Options for initializing a pipeline. T4800

AdvanceStageOptions

Options for advancing pipeline stage. T4800

PipelineQueryOptions

Pipeline query options. T4800

BriefingTask

Task summary for briefing output.

BriefingBug

Bug summary for briefing output.

BriefingBlockedTask

Blocked task summary for briefing output.

BriefingEpic

Active epic summary for briefing output.

PipelineStageInfo

Pipeline stage data for briefing output.

LastSessionInfo

Last session info with handoff data.

CurrentTaskInfo

Currently active task info.

SessionBriefing

Session briefing result.

BriefingOptions

Options for computing session briefing.

MinimalSessionRecord

Minimal session record returned by findSessions().

FindSessionsParams

Parameters for findSessions().

ContextDriftResult

SessionHistoryEntry

SessionHistoryParams

SessionStatsResult

RuntimeProviderContext

RuntimeProviderSnapshot

StartSessionOptions

Options for starting a session.

EndSessionOptions

Options for ending a session.

ListSessionsOptions

Options for listing sessions.

EnforcementMode

Enforcement modes.

ActiveSessionInfo

Session info for enforcement checks.

EnforcementResult

Enforcement result.

ValidationResult

AddTaskEnforcementOptions

UpdateTaskEnforcementOptions

AcceptanceEnforcement

ResolvedParent

Minimal parent task shape needed for pipeline stage resolution. T060

TaskPipelineStage

Union type of all valid pipeline stage names.

LifecycleMode

The resolved enforcement mode (from lifecycle.mode config key).

EpicEnforcementResult

Result of an enforcement check. warning is populated in advisory mode.

AddTaskOptions

Options for creating a task. description is required per CLEO’s anti-hallucination rules — every task must have both a title and a description, and they must differ.

AddTaskResult

Result of adding a task.

ListPhasesResult

Options for listing phases.

SetPhaseOptions

Options for setting current phase.

SetPhaseResult

Result of a phase set operation.

ShowPhaseResult

Phase show result.

AdvancePhaseResult

Phase advance result.

RenamePhaseResult

Phase rename result.

DeletePhaseResult

Phase delete result.

PruneResult

SchemaInstallResult

StalenessReport

InstalledSchema

CheckResult

JsonFileIntegrityResult

Result for a single file check.

SchemaIntegrityReport

Full integrity report for all JSON files.

ProjectType

Detected project type.

TestFramework

Test framework.

FileNamingConvention

ImportStyle

ProjectContext

Schema-compliant project context for LLM agent consumption.

ScaffoldResult

InjectionCheckResult

ScaffoldResult

Result of an ensure* scaffolding operation.

CheckStatus

Status of a check* diagnostic.

CheckResult

Result of a check* diagnostic (compatible with doctor/checks.ts CheckResult).

ProjectClassification

Classification result for a project directory.

ClassificationSignal

A single classification signal detected on the filesystem.

ScaffoldResult

HookCheckResult

EnsureGitHooksOptions

ManagedHook

LegacyDetectionResult

Result of detecting legacy agent-output directories.

AgentOutputsMigrationResult

Result of running the agent-outputs migration.

NexusPermissionLevel

NexusHealthStatus

NexusProject

Domain representation of a registered Nexus project.

NexusRegistryFile

Legacy registry file shape (pre-SQLite). Retained for migration compatibility.

StackAnalysis

ArchAnalysis

StructureAnalysis

ConventionAnalysis

TestingAnalysis

IntegrationAnalysis

ConcernAnalysis

CodebaseMapResult

MapCodebaseOptions

InitOptions

Options for the init operation.

InitResult

Result of the init operation.

BootstrapContext

Result tracking arrays passed through each bootstrap step.

BootstrapOptions

Options for bootstrapGlobalCleo.

ExportFormat

ExportParams

ExportResult

ImportParams

ImportResult

AgentExecutionOutcome

The outcome of an agent’s execution attempt on a task.

AgentExecutionEvent

Context recorded when an agent completes or fails a task.

AgentPerformanceSummary

Summary of an agent type’s execution performance on a task type.

HealingSuggestion

A self-healing suggestion derived from failure pattern history.

AgentCapacity

Task-count-based capacity for a single agent instance.

AgentPerformanceMetrics

Metrics provided when recording agent performance.

CapacitySummary

Capacity summary for reporting.

AgentHealthStatus

Health status of a specific agent instance.

RetryPolicy

Configuration for retry behavior.

RetryResult

Result of a retried operation.

AgentRecoveryResult

Result of a recovery attempt for a single agent.

RiskFactor

A single factor contributing to a task’s overall risk score. Each factor has a weight (how much it matters) and a value (current level, 0-1). The weighted sum of all factors produces the aggregate risk score.

RiskAssessment

Complete risk assessment for a single task. Returned by calculateTaskRisk. The riskScore is the weighted aggregate of all RiskFactor entries in factors.

ValidationPrediction

Predicted outcome for a lifecycle validation gate. Returned by predictValidationOutcome. Combines historical pattern data with the task’s current state to estimate pass likelihood.

DetectedPattern

A pattern automatically detected from historical brain/task data. Detected patterns may be stored in the existing brain_patterns table if they meet frequency and confidence thresholds.

PatternMatch

Result of matching a task against known patterns from brain_patterns. Includes the original pattern row and a relevance score indicating how strongly the pattern applies to the target task.

PatternExtractionOptions

Options for pattern extraction from historical data.

PatternStatsUpdate

Result of updating pattern statistics after an outcome.

LearningContext

Summary of applicable learnings for a task, used in prediction.

ImpactAssessment

Full impact assessment for a task within its dependency graph. Captures direct dependents, transitive dependents, lifecycle pipeline effects, blocked work counts, and critical path membership.

ChangeType

The type of change being analyzed.

ChangeImpact

Predicted downstream effects of a specific change to a task. Models what happens when a task is cancelled, blocked, completed, or reprioritized — including cascading status changes and recommendations.

AffectedTask

A single task affected by a change, with its predicted new state.

ImpactedTask

A single task predicted to be affected by a free-text change description. Produced by predictImpact after matching candidate tasks against the change description and running downstream dependency analysis.

ImpactReport

Full impact prediction report for a free-text change description. Returned by predictImpact. Combines fuzzy task search with reverse dependency analysis to enumerate which tasks are at risk.

BlastRadiusSeverity

Severity classification for blast radius.

BlastRadius

Quantified scope of a task’s impact across the project.

GateFocusRecommendation

A gate-level focus recommendation produced by adaptive validation.

AdaptiveValidationSuggestion

Full adaptive validation suggestion set for a task.

VerificationConfidenceScore

Result of scoring and persisting a completed verification round.

StorePredictionOptions

Parameters for storing a quality prediction as a brain observation.

DependencyCheckResult

Result of a dependency validation check.

DependencyError

A dependency error.

DependencyWarning

A dependency warning.

DependencyWave

A wave of parallelizable tasks.

NexusParsedQuery

NexusResolvedTask

Task with project context annotation.

DiscoverResult

NexusDiscoverResult

SearchResult

NexusSearchResult

PermissionCheckResult

SharingStatus

Result of a sharing status check.

TaskCurrentResult

Result of getting current task.

TaskStartResult

Result of starting work on a task.

TaskWorkHistoryEntry

Task work history entry.

CompleteTaskOptions

Options for completing a task.

CompleteTaskResult

Result of completing a task.

RuleViolation

Validation error from anti-hallucination checks

UpdateTaskOptions

Options for updating a task.

UpdateTaskResult

Result of updating a task.

ParsedDirective

Parsed directive from a Conduit message.

RouteResult

Result of routing a directive to a project.

WorkspaceStatus

Aggregated task status across all projects.

WorkspaceProjectSummary

Task summary for a single project.

WorkspaceAgent

Agent info aggregated across projects.

ProjectACL

Project-level ACL entry.

DepNode

A node in the dependency graph.

DepsOverviewResult

Dependency overview result.

TaskDepsResult

Single task dependency result.

ExecutionWave

Execution wave (group of parallelizable tasks).

CriticalPathResult

Critical path result.

CycleResult

Cycle detection result.

TreeNode

Tree node representation.

CircularDependency

A circular dependency cycle found via DFS traversal.

MissingDependency

A missing dependency reference within an epic.

DependencyAnalysis

Full dependency analysis result for an epic.

ContextEstimation

Context estimation result.

Wave

EnrichedWave

StatusCounts

Status counts by task state.

EpicStatus

Epic-specific status result.

OverallStatus

Overall orchestration status (no specific epic).

ProgressMetrics

Progress metrics for orchestration check.

StartupSummary

Startup summary for an epic.

OrchestratorSession

Orchestrator session state.

SpawnContext

Spawn context for a subagent.

TaskReadiness

Task readiness assessment.

AnalysisResult

Orchestrator analysis result.

ArtifactType

Supported artifact types.

ArtifactConfig

Artifact configuration from release config.

ArtifactResult

Result of an artifact operation.

ArtifactHandler

Artifact handler interface.

ReleaseConfig

Release configuration shape.

ReleaseGate

Release gate definition.

GitFlowConfig

GitFlow branch configuration.

ChannelConfig

Channel-to-branch mapping for npm dist-tag resolution.

PushMode

Push mode: direct push vs PR creation vs auto-detect.

ReleaseChannel

npm dist-tag channel for a release.

ChannelValidationResult

Result of validating a version string against a channel’s expectations.

CIPlatform

Supported CI/CD platforms.

BranchProtectionResult

PRCreateOptions

PRResult

RepoIdentity

EpicCompletenessResult

Epic completeness result.

DoubleListingResult

Double-listing check result.

BumpType

Bump type for version calculation.

VersionBumpTarget

Version bump target config from .cleo/config.json.

BumpResult

Bump result for a single file.

ReleaseManifest

Release manifest structure.

ReleaseListOptions

ReleaseTaskRecord

Task record shape needed for release operations.

ReleaseGateMetadata

Metadata captured during gate evaluation, returned alongside gate results. Downstream (engine layer) uses this to determine PR vs direct push.

PushPolicy

Push policy configuration from config.release.push.

SnapshotDecision

A decision recorded during the session.

SnapshotObservation

Brain observation linked to this session.

SnapshotTaskContext

Active task context at snapshot time.

SessionSnapshot

Complete session snapshot — everything needed to resume. This is the serialization format. It is JSON-safe and can be stored in a file, database column, or transmitted over the network.

SerializeOptions

Options for serializing a session.

RestoreOptions

Options for restoring a session.

StickyNoteStatus

Sticky note status values.

StickyNoteColor

Sticky note color options.

StickyNotePriority

Sticky note priority levels.

ConvertedTargetType

Converted target type.

ConvertedTarget

Converted target reference.

StickyNote

Core sticky note interface.

CreateStickyParams

Parameters for creating a sticky note.

ListStickiesParams

Parameters for listing sticky notes.

ConvertStickyParams

Parameters for converting a sticky note.

ArchiveTasksOptions

Options for archiving tasks.

ArchiveTasksResult

Result of archiving tasks.

DeleteTaskOptions

Options for deleting a task.

DeleteTaskResult

Result of deleting a task.

EngineResult

Canonical EngineResult type used by all engines and core engine-compat modules.

ExportMeta

Export package metadata.

ExportSelection

Export selection criteria.

IdMapEntry

ID map entry.

RelationshipGraph

Relationship graph.

ExportPackage

Complete export package.

ExportTasksParams

ExportTasksResult

HelpOperationDef

Minimal operation definition consumed by help logic.

CostHint

Cost hint classification for an operation.

GroupedOperations

Domain-grouped operation format (compact).

VerboseOperation

Verbose operation entry with cost hints.

HelpResult

Result of the help computation.

TransferMode

Transfer mode: copy keeps source tasks, move archives them.

TransferScope

Transfer scope: single task or full subtree.

TransferOnConflict

Conflict resolution when target has tasks with duplicate titles.

TransferOnMissingDep

How to handle missing dependencies in the target project.

TransferParams

Parameters for a cross-project transfer operation.

TransferManifestEntry

A single task entry in the transfer manifest.

TransferManifest

Manifest describing what was (or would be) transferred.

TransferResult

Result of a transfer operation.

ImportFromPackageOptions

Options passed to importFromPackage (extracted from importTasksPackage).

ImportFromPackageResult

Result from importFromPackage.

RemapTable

Forward and reverse remap tables.

ImportTasksParams

ImportTasksResult

ValidationError

ValidationResult

AdrValidationError

ValidationError — canonical name per ADR-017 spec

AdrValidationResult

ValidationResult — canonical name per ADR-017 spec

TreeSitterLanguage

Supported tree-sitter language identifiers.

OutlineNode

A symbol node in the outline tree, with optional children.

SmartOutlineResult

Result of generating a smart outline for a file.

SmartSearchResult

A search result with relevance score.

SmartSearchOptions

Options for smart_search.

SmartUnfoldResult

Result of unfolding a single symbol.

ComplianceJsonlEntry

PayloadValidationResult

Result of payload validation.

BuildConfig

RepositoryConfig

IssueTemplate

Parsed issue template.

AddIssueParams

AddIssueResult

RetryablePredicate

A predicate or pattern used to decide whether an error is retryable. - RegExp — matched against error.message (or String(error)) - (error: unknown) => boolean — arbitrary predicate function

RetryOptions

Options that control retry behavior for withRetry.

RetryContext

Metadata attached to errors thrown after all retry attempts are exhausted. The last error from the final attempt is augmented with these fields so callers can distinguish a retry-exhausted failure from a first-attempt one.

DecayResult

Result from applying temporal decay.

ConsolidationResult

Result from consolidating memories.

BrainMigrationResult

Result from a migration run.

ResearchEntry

Research entry attached to a task.

ManifestEntry

Manifest entry (JSONL line).

AddResearchOptions

Options for adding research.

ListResearchOptions

Options for listing research.

ManifestQueryOptions

Manifest query options.

ExtendedManifestEntry

Extended manifest entry with optional fields used by the engine.

ResearchFilter

Research filter criteria used by the engine.

ContradictionDetail

Contradiction detail between two manifest entries.

SupersededDetail

Superseded entry detail.

ComplianceSummary

Compliance summary shape.

OtelCaptureMode

OTel capture mode.

OtelTokenDataPoint

Token data point parsed from OTel metrics.

AggregatedTokens

Aggregated token counts.

ABVariant

A/B test variant.

ABEventType

A/B test event types.

ABTestSummary

A/B test summary result.

Severity

Violation severity levels.

ManifestIntegrity

Manifest integrity states.

InstructionStability

Instruction stability levels.

SessionDegradation

Session degradation levels.

AgentReliability

Agent reliability levels.

MetricCategory

Metric categories.

MetricSource

Metric sources.

AggregationPeriod

Aggregation periods.

TokenEventType

Token event types.

TokenEvent

A token usage event entry.

TokenSessionSummary

Token session summary shape.

VerificationResult

Result of a backup verification operation.

LogLevel

Log entry severity level

MigrationLogEntry

Single migration log entry

MigrationLoggerConfig

Migration logger configuration

PreflightResult

Pre-flight check result.

MigrationPhase

Migration phase - tracks current step in the migration process

SourceFileInfo

Source file info with checksum for integrity verification

MigrationProgress

Migration progress tracking

MigrationState

Complete migration state structure

JsonFileValidation

Result of validating a single JSON file.

JsonValidationResult

Complete validation result for all source files.

SchemaVersion

Schema version info.

MigrationFn

Migration function signature.

MigrationDef

Migration definition.

MigrationResult

Migration run result.

MigrationStatus

Status of all data files.

NexusGraphNode

NexusGraphEdge

NexusGlobalGraph

DepsResult

Result of a dependency query.

DepsEntry

Single dependency entry with resolution status.

CriticalPathResult

Critical path result.

BlockingAnalysisResult

Blocking analysis result.

OrphanEntry

Orphan detection result.

PinoLevel

Pino log levels as written by CLEO’s logger (uppercase).

PinoLogEntry

A parsed pino log entry from a CLEO log file. Core fields are always present; additional fields are captured in extra.

LogFileInfo

Metadata about a discovered log file.

LogFilter

Filter criteria for log queries. All fields are optional; when multiple are provided, they are ANDed.

LogQueryResult

Result of a log query operation.

LogDiscoveryOptions

Options for discovering log files.

LogSummary

Summary of log activity across files.

RemoteConfig

Remote configuration.

PushResult

Result of a push operation.

PullResult

Result of a pull operation.

RemoteInfo

Result of a remote list operation.

ExecutionMode

Execution mode for an operation

GatewayType

Gateway type

PreferredChannel

Preferred communication channel for token efficiency. CLI is the only dispatch channel. T5240

OperationCapability

CapabilityReport

Capability report returned by system.doctor

RateLimitConfig

Rate limiter configuration

RateLimitResult

Rate limit check result

ContributionDecision

A contribution decision from an agent.

ContributionConflict

Conflict between two agent decisions.

ConsensusResult

Consensus result from weighted voting.

SkillsMpConfig

SkillsMP configuration.

MarketplaceSkill

Marketplace skill result (CLEO-specific shape).

BatchSpawnEntry

Result of a single spawn within a batch.

BatchSpawnResult

Result of a batch spawn operation.

SessionInitResult

Session init result.

PauseStatus

Pause status result.

SkillSourceType

Source type classification for a skill directory.

SkillSourceMode

Skill source mode.

SkillSearchPath

Search path entry with its origin.

IssueSeverity

Validation issue severity.

ValidationIssue

Single validation issue.

SkillValidationResult

Validation result for a skill.

SnapshotMeta

Snapshot metadata.

SnapshotTask

Portable task representation (subset of Task, omitting local-only fields).

Snapshot

Complete snapshot package.

ImportResult

Import result summary.

SpawnCapability

Spawn capability type - subset of provider capabilities related to spawning

WorkflowRuleMetric

Per-rule compliance breakdown.

WorkflowComplianceReport

Full workflow compliance report.

ArchiveMetadata

Archive metadata that may be attached to archived task records.

AnalyticsTask

Archived task shape used internally for analytics.

ArchiveReportType

SummaryReportData

Summary report result.

PhaseGroupEntry

Phase group entry.

LabelFrequencyEntry

Label frequency entry.

PriorityGroupEntry

Priority group entry.

CycleTimeDistribution

Cycle time distribution buckets.

CycleTimePercentiles

Cycle time percentiles.

CycleTimesReportData

Cycle times report result.

DailyArchiveEntry

Daily archive entry.

MonthlyArchiveEntry

Monthly archive entry.

TrendsReportData

Trends report result.

EmptyArchiveData

Empty archive sentinel (when totalArchived is 0).

ArchiveReportDataMap

Union type mapping report types to their data shapes.

ArchiveAnalyticsResult

The envelope returned by analyzeArchive.

AnalyzeArchiveOptions

Options for analyzeArchive.

ArchiveStatsResult

AuditIssue

AuditResult

BackupResult

RestoreResult

BackupEntry

A single backup entry returned by listSystemBackups.

CleanupResult

Platform

Detected platform.

SystemInfo

Structured snapshot of the host system for diagnostics, error reports, and logging.

CheckStatus

CheckResult

HealthCheck

HealthResult

DiagnosticsCheck

DiagnosticsResult

DoctorCheck

DoctorReport

FixResult

StartupState

Outcome of a startup health check. Tells the caller exactly what state the system is in so it can route to init, upgrade, or proceed normally.

StartupHealthCheck

StartupHealthResult

InjectGenerateResult

LabelsResult

SystemMetricsResult

MigrateResult

RuntimeDiagnostics

SafestopResult

UncancelResult

TemplateSection

A single section/field within an issue template.

IssueTemplate

A parsed issue template.

TemplateConfig

The full template config output.

TemplateResult

Result type for template parser operations.

ShellType

Supported shell types.

ChangelogSection

Grouped changelog sections.

CommandMeta

Parsed command metadata.

ParsedFlags

Parsed flag state.

InsertTask

SelectTask

InsertTaskDependency

SelectTaskDependency

InsertTaskRelation

SelectTaskRelation

InsertSession

SelectSession

InsertWorkHistory

SelectWorkHistory

InsertLifecyclePipeline

SelectLifecyclePipeline

InsertLifecycleStage

SelectLifecycleStage

InsertLifecycleGateResult

SelectLifecycleGateResult

InsertLifecycleEvidence

SelectLifecycleEvidence

InsertLifecycleTransition

SelectLifecycleTransition

InsertSchemaMeta

SelectSchemaMeta

InsertAuditLog

SelectAuditLog

AuditLogInsert

Canonical type alias for audit log insert (T4848).

AuditLogSelect

Canonical type alias for audit log select (T4848).

InsertTokenUsage

SelectTokenUsage

InsertArchitectureDecision

SelectArchitectureDecision

InsertManifestEntry

SelectManifestEntry

InsertPipelineManifest

SelectPipelineManifest

InsertReleaseManifest

SelectReleaseManifest

InsertAgentInstance

SelectAgentInstance

InsertAgentErrorLog

SelectAgentErrorLog

ManifestIntegrity

Severity

ComplianceMetrics

ManifestEntry

TokenMetrics

TokenEfficiency

OrchestrationOverhead

DriftIssue

DriftReport

CommandIndexEntry

CommandIndex

SchemaVersions

FileHashes

ProjectCacheEntry

DoctorProjectCache

ProjectDetail

CategorizedProjects

UserJourneyStage

HealthSummary

ValidationError

ValidationResult

Task

TaskData

Task data shape for validation functions.

ArchiveData

Archive data shape for validation functions.

ComprehensiveValidationResult

ManifestDoc

GapEntry

CoverageEntry

GapReport

ManifestEntry

ManifestViolation

ManifestValidationResult

ComplianceEntry

ProtocolViolation

ProtocolValidationResult

GateName

AgentName

FailureLogEntry

VerificationGates

Verification

VerificationStatus

CircularValidationResult

TaskForVerification

ProjectInfo

Fields consumed by logging, audit, and correlation subsystems.

BackfillOptions

Options for backfillTasks().

BackfillTaskChange

Summary of what was (or would be) changed for a single task.

BackfillResult

Overall result returned by backfillTasks().

RequirementLevel

RFC 2119 requirement levels

ViolationSeverity

Violation severity

ProtocolRule

Protocol rule definition

ProtocolViolation

Protocol violation result

ProtocolValidationResult

Protocol validation result

ErrorSeverity

Error severity levels for protocol/gate validation.

ErrorCategory

Error category for grouping protocol/gate violations.

ProtocolExitCode

Protocol-specific exit codes used by the RCASD-IVTR+C enforcement system. These map to the protocol violation range (60-70) and lifecycle enforcement range (80-84) defined in the protocol specification. The values here align with the protocol enforcement layer’s own exit code semantics, which differ from the canonical CLI exit codes in src/types/exit-codes.ts. The canonical CLI ExitCode enum at src/types/exit-codes.ts maps range 60-67 to orchestrator errors, while this enum maps them to protocol violations. Both are valid in their respective contexts — CLI vs protocol enforcement.

ProtocolRequest

Request shape used by the protocol enforcement system. Minimal interface matching the fields needed by ProtocolEnforcer.

ProtocolResponse

Response shape used by the protocol enforcement system.

ProtocolType

Protocol types aligned with RCASD-IVTR+C lifecycle

ViolationLogEntry

Violation log entry

ChainFindCriteria

ProtocolViolation

Protocol violation entry.

ProtocolValidationResult

Protocol validation result.

ManifestEntryInput

Manifest entry structure for validation.

ProtocolType

VotingMatrix

AdrStatus

ADR lifecycle status values. T260

ArchitectureDecisionOptions

Architecture decision options for validator.

ValidationStageOptions

Validation-stage options for validator.

TestFramework

Project-agnostic test framework identifiers. The testing protocol is deliberately framework-neutral. Whichever framework the project uses, the protocol only cares that tests run autonomously via a framework adapter and loop until the spec is met. T260

TestingOptions

Testing-stage options for validator.

BrainMaintenanceDecayResult

Temporal decay step result subset used in maintenance output.

BrainMaintenanceConsolidationResult

Memory consolidation step result subset used in maintenance output.

BrainMaintenanceReconciliationResult

Orphaned reference reconciliation step result.

BrainMaintenanceEmbeddingsResult

Embedding backfill step result.

BrainMaintenanceResult

Aggregated result from a full brain maintenance run. All counts are zero when a step is skipped via the corresponding skip* option.

BrainMaintenanceOptions

Options for runBrainMaintenance. All skip* flags default to false — the full maintenance pass runs unless specific steps are disabled.

ClaudeMemMigrationResult

Result from a claude-mem migration run.

ClaudeMemMigrationOptions

Options for the claude-mem migration.

BlockerNode

CausalTrace

SimilarEntry

ManifestEntry

ModelProviderLookup

TokenMethod

TokenConfidence

TokenTransport

TokenExchangeInput

TokenMeasurement

TokenUsageFilters

TokenUsageSummary

SkillEntry

SkillContent

HighImpactTask

SingleBlockerTask

CommonBlocker

UnblockResult

ValidationIssue

SpawnValidationResult

ContextInjectionData

Data returned by context injection.

CancelResult

Result of a cancel operation.

FlatTreeNode

Tree node representation for task hierarchy.

ComplexityFactor

Complexity factor contributing to a task’s size estimate.

AnalysisResult

StoreEngine

Store engine type. SQLite is the only supported engine (ADR-006). T4647

TaskFilters

Common task filter options.

SessionFilters

Common session filter options.

StoreProvider

Store provider interface. Backed by SQLite (ADR-006 canonical storage).

MigrationResult

Migration result.

MigrationOptions

Options for migration.

RepairAction

A single repair action with status.

UpgradeAction

A single upgrade action with status.

UpgradeResult

Full upgrade result.

UpgradeSummary

Counts of what upgrade checked/applied/skipped.

DiagnoseFinding

A single diagnostic finding from —diagnose.

DiagnoseResult

Result from diagnoseUpgrade().

GateLayer

Gate layer enumeration

GateStatus

Gate status for each layer

GateViolation

Violation detail for a specific gate layer

LayerResult

Result from a single gate layer validation

VerificationResult

Complete verification result across all 4 layers

OperationContext

Operation context for gate validation

WorkflowGateName

Workflow gate names per protocol specification Section 7.1 T3141

WorkflowGateStatus

Workflow gate status values per Section 7.3

WorkflowGateAgent

Agent responsible for each gate per Section 7.2

WorkflowGateDefinition

Individual workflow gate definition per Section 7.2

WorkflowGateState

State of a single workflow gate

JsonSchemaType

JsonSchemaProperty

JSONSchemaObject

CommanderArgSplit

ValidationResult

Validation result

ValidationError

Individual validation error

SchemaType

Schema types that can be validated via AJV/JSON Schema. SQLite-backed types (todo, archive, log, sessions) use drizzle-zod validation instead.

ComplianceEntry

Compliance entry stored in COMPLIANCE.jsonl

CoherenceIssue

Coherence issue found during graph validation.

ValidateCheckDetail

ValidateReportResult

ValidateAndFixResult

Result from validate + fix operation.

CriticalPathNode

CriticalPathResult

SkillsPrecedenceConfig

Configuration for skill precedence resolution across providers.

ResolvedSkillPath

A resolved skill path with full provenance metadata.

SkillInstallationContext

Context for a skill installation operation.

InProgressEpic

In-progress epic entry.

ReadyTask

Ready task entry with leverage analysis.

BlockedTask

Blocked task entry.

OpenBug

Open bug entry.

PlanMetrics

Planning metrics.

PlanResult

Composite planning view result.

RcasdIndex

RCASD-INDEX.json top-level structure.

IndexMeta

Index metadata.

IndexTotals

Aggregate counts.

TaskAnchor

Task-anchored RCASD artifact reference.

SpecEntry

Specification entry.

ReportEntry

Report entry.

PipelineState

Pipeline state.

PipelineOperation

Active pipeline operation.

ChangeEntry

Change entry.

ExecutionResult

The aggregate result of executing a CANT workflow.

StepResult

The result of a single workflow statement execution.

DiscretionContext

Context provided to a discretion evaluator for AI-judged conditions.

ApprovalTokenStatus

Valid states for an approval token.

ApprovalToken

An approval token for human-in-the-loop workflow gates. Tokens are bound to a specific session and workflow. The workflowHash provides TOCTOU protection: if the workflow is modified between token creation and approval, the token is invalidated. Security invariants: - Token values MUST NOT appear in audit logs, summaries, or error messages. - approvalTokensJson is NEVER included in handoff/debrief serialization. - Status transitions use atomic CAS (pending - approved|rejected|expired only).

TokenValidation

Result of validating an approval token.

JoinStrategy

Join strategy for parallel block execution.

SettleResult

Result of a parallel block execution with the settle strategy.

ExecutionScope

Variable scope for workflow execution.

DiscretionEvaluator

Evaluates a discretion condition and returns a boolean judgment.

ParallelArm

A single parallel arm to execute.

ParallelResult

Result of a parallel block execution.

WorkflowExecutorConfig

Configuration options for the workflow executor.

ResumablePipeline

Resumable pipeline information returned to callers. T4805 T4798

PipelineContext

Pipeline context for session resume. T4805

StageContext

Stage context within a pipeline. T4805

GateResultContext

Gate result context. T4805 T4804

EvidenceContext

Evidence context. T4805 T4804

TransitionContext

Transition context. T4805

TaskContext

Task context. T4805

ResumeResult

Result of a resume operation. T4805

AutoResumeResult

Auto-resume detection result. T4805

FindResumableOptions

Options for finding resumable pipelines. T4805

SessionResumeCheckOptions

Options for session start with resume check. T4805

SessionResumeCheckResult

Result of session resume check. T4805

PrereqCheck

Prerequisite check result. T4800

TransitionValidation

Transition validation result. T4800

StageState

Stage state snapshot for state machine. T4800

StateMachineContext

State machine context for a pipeline. T4800

StateTransition

State transition request. T4800

StateTransitionResult

State transition result. T4800

ContextWindowInput

Context window input from Claude Code.

ContextStatus

Context status derived from input.

HITLLevel

HITL warning level.

HITLWarning

HITL warning entry.

HITLWarningsResult

HITL warnings result.

StatuslineStatus

Statusline integration status.

RoutingEntry

Routing entry describing the preferred channel for an operation. Derived from OperationCapability in the capability matrix. Use this type when consuming domain-level routing results from getRoutingForDomain() or getOperationsByChannel().

ProviderContext

Provider capability context for dynamic skill generation.

IndexMap

Cache index mapping labels/phases to task IDs.

ImportPackageMeta

Import package metadata extracted from the export file.

ImportConflictType

Import conflict types.

ImportConflictResolution

Import conflict resolution strategies.

ImportOptions

Import options for logging context.

SortableTask

Minimal task shape needed for topological sorting.

PipelineStageTaskRow

Row shape for pipeline + stage + task JOIN.

PipelineStageRow

Row shape for pipeline + stage JOIN.

InsertProjectRegistry

SelectProjectRegistry

InsertNexusAuditLog

SelectNexusAuditLog

InsertNexusSchemaMeta

SelectNexusSchemaMeta

AtomicityResult

AtomicityCriterion

RelatesType

Valid relationship types for relates entries.

RelatesEntry

A single relates entry.

Severity

Impact severity levels.

DeleteWarning

An impact warning.

AffectedTasks

Affected tasks info.

DeleteImpact

Impact analysis.

DeletePreview

Full preview result.

ChildStrategy

Valid child handling strategies.

StrategyResult

Result from a strategy handler.

DiscoveryMethod

Discovery method.

DiscoveryMatch

A single discovery match.

PhaseProgress

Phase progress information.

PhaseTransitionValidation

Validate a phase transition.

StalenessThresholds

Staleness thresholds in days.

StalenessLevel

Staleness classification.

StalenessInfo

Staleness assessment for a single task.

StalenessSummary

Get staleness summary statistics.