> ## Documentation Index
> Fetch the complete documentation index at: https://codluv.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# core — API Reference

> Full API reference for the core package

API reference for the `core` package.

## Functions & Classes

| Symbol                                                                                                             | Kind     | Description                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------ | -------- | -------------------------------------------------------------------------------------------------------------------- |
| [`initLogger()`](/packages/core/api/functions#initlogger)                                                          | function | Initialize the root logger. Call once at startup.  Uses pino-roll for automat...                                     |
| [`getLogger()`](/packages/core/api/functions#getlogger)                                                            | function | Get a child logger bound to a subsystem name.  Safe to call before initLogger...                                     |
| [`getLogDir()`](/packages/core/api/functions#getlogdir)                                                            | function | Get the current log directory path. Useful for read APIs that need to scan lo...                                     |
| [`closeLogger()`](/packages/core/api/functions#closelogger)                                                        | function | Flush and close the logger. Call during graceful shutdown.  Returns a Promise...                                     |
| [`getPlatformPaths()`](/packages/core/api/functions#getplatformpaths)                                              | function | Get OS-appropriate paths for CLEO's global directories. Cached after first ca...                                     |
| [`getSystemInfo()`](/packages/core/api/functions#getsysteminfo)                                                    | function | Get a cached system information snapshot. Captured once and reused for the pr...                                     |
| [`_resetPlatformPathsCache()`](/packages/core/api/functions#resetplatformpathscache)                               | function | Invalidate the path and system info caches. Use in tests after mutating CLEO\_...                                    |
| [`isProjectInitialized()`](/packages/core/api/functions#isprojectinitialized)                                      | function | Check if a CLEO project is initialized at the given root. Checks for tasks.db.                                       |
| [`getCleoHome()`](/packages/core/api/functions#getcleohome)                                                        | function | Get the global CLEO home directory. Respects CLEO\_HOME env var; otherwise use...                                    |
| [`getCleoTemplatesDir()`](/packages/core/api/functions#getcleotemplatesdir)                                        | function | Get the global CLEO templates directory.                                                                             |
| [`getCleoSchemasDir()`](/packages/core/api/functions#getcleoschemasdir)                                            | function | Get the global CLEO schemas directory.                                                                               |
| [`getCleoDocsDir()`](/packages/core/api/functions#getcleodocsdir)                                                  | function | Get the global CLEO docs directory.                                                                                  |
| [`getCleoDir()`](/packages/core/api/functions#getcleodir)                                                          | function | Get the project CLEO data directory (relative). Respects CLEO\_DIR env var, de...                                    |
| [`getCleoDirAbsolute()`](/packages/core/api/functions#getcleodirabsolute)                                          | function | Get the absolute path to the project CLEO directory.                                                                 |
| [`getProjectRoot()`](/packages/core/api/functions#getprojectroot)                                                  | function | Get the project root from the CLEO directory. Respects CLEO\_ROOT env var, the...                                    |
| [`resolveProjectPath()`](/packages/core/api/functions#resolveprojectpath)                                          | function | Resolve a project-relative path to an absolute path.                                                                 |
| [`getTaskPath()`](/packages/core/api/functions#gettaskpath)                                                        | function | Get the path to the project's tasks.db file (SQLite database).                                                       |
| [`getConfigPath()`](/packages/core/api/functions#getconfigpath)                                                    | function | Get the path to the project's config.json file.                                                                      |
| [`getSessionsPath()`](/packages/core/api/functions#getsessionspath)                                                | function | Get the path to the project's sessions.json file.                                                                    |
| [`getArchivePath()`](/packages/core/api/functions#getarchivepath)                                                  | function | Get the path to the project's archive file.                                                                          |
| [`getLogPath()`](/packages/core/api/functions#getlogpath)                                                          | function | Get the path to the project's log file. Canonical structured runtime log path...                                     |
| [`getBackupDir()`](/packages/core/api/functions#getbackupdir)                                                      | function | Get the backup directory for operational backups.                                                                    |
| [`getGlobalConfigPath()`](/packages/core/api/functions#getglobalconfigpath)                                        | function | Get the global config file path.                                                                                     |
| [`getCleoGlobalRecipesDir()`](/packages/core/api/functions#getcleoglobalrecipesdir)                                | function | Get the Global Justfile Hub directory.  The hub stores cross-project recipe l...                                     |
| [`getCleoGlobalJustfilePath()`](/packages/core/api/functions#getcleoglobaljustfilepath)                            | function | Get the absolute path to the primary global justfile.                                                                |
| [`getCleoPiExtensionsDir()`](/packages/core/api/functions#getcleopiextensionsdir)                                  | function | Get the Global Pi Extensions Hub directory.  Houses the Pi extensions that dr...                                     |
| [`getCleoCantWorkflowsDir()`](/packages/core/api/functions#getcleocantworkflowsdir)                                | function | Get the Global CANT Workflows Hub directory.  Stores compiled and parsed...                                          |
| [`getCleoGlobalAgentsDir()`](/packages/core/api/functions#getcleoglobalagentsdir)                                  | function | Get the Global CLEO Agents directory.  Holds globally-available CANT agent de...                                     |
| [`getAgentOutputsDir()`](/packages/core/api/functions#getagentoutputsdir)                                          | function | Get the agent outputs directory (relative path) from config or default.  Conf...                                     |
| [`getAgentOutputsAbsolute()`](/packages/core/api/functions#getagentoutputsabsolute)                                | function | Get the absolute path to the agent outputs directory.                                                                |
| [`getManifestPath()`](/packages/core/api/functions#getmanifestpath)                                                | function | Get the absolute path to the legacy agent-outputs flat-file (deprecated per ADR-027).  Checks config.agentOutputs... |
| [`getManifestArchivePath()`](/packages/core/api/functions#getmanifestarchivepath)                                  | function | Get the absolute path to the MANIFEST.archive.jsonl file.                                                            |
| [`isAbsolutePath()`](/packages/core/api/functions#isabsolutepath)                                                  | function | Check if a path is absolute (POSIX or Windows).                                                                      |
| [`getCleoLogDir()`](/packages/core/api/functions#getcleologdir)                                                    | function | Get the OS log directory for CLEO global logs. Linux: \~/.local/state/cleo \| m...                                   |
| [`getCleoCacheDir()`](/packages/core/api/functions#getcleocachedir)                                                | function | Get the OS cache directory for CLEO. Linux: \~/.cache/cleo \| macOS: \~/Library/...                                  |
| [`getCleoTempDir()`](/packages/core/api/functions#getcleotempdir)                                                  | function | Get the OS temp directory for CLEO ephemeral files.                                                                  |
| [`getCleoConfigDir()`](/packages/core/api/functions#getcleoconfigdir)                                              | function | Get the OS config directory for CLEO. Linux: \~/.config/cleo \| macOS: \~/Librar...                                  |
| [`getCleoTemplatesTildePath()`](/packages/core/api/functions#getcleotemplatestildepath)                            | function | Get the CLEO templates directory as a tilde-prefixed path for use in `@` refe...                                     |
| [`getAgentsHome()`](/packages/core/api/functions#getagentshome)                                                    | function | Get the global agents hub directory. Respects AGENTS\_HOME env var, defaults t...                                    |
| [`getClaudeAgentsDir()`](/packages/core/api/functions#getclaudeagentsdir)                                          | function | Get the Claude Code agents directory (\~/.claude/agents by default).                                                 |
| [`getClaudeMemDbPath()`](/packages/core/api/functions#getclaudememdbpath)                                          | function | Get the claude-mem SQLite database path.                                                                             |
| [`tableExists()`](/packages/core/api/functions#tableexists)                                                        | function | Check whether a table exists in a SQLite database.                                                                   |
| [`isSqliteBusy()`](/packages/core/api/functions#issqlitebusy)                                                      | function | Check if an error is a SQLite BUSY error (database locked by another process)...                                     |
| [`createSafetyBackup()`](/packages/core/api/functions#createsafetybackup)                                          | function | Create a pre-migration safety backup of the database file.  Only creates the...                                      |
| [`reconcileJournal()`](/packages/core/api/functions#reconcilejournal)                                              | function | Bootstrap and reconcile the Drizzle migration journal.  Handles three scenari...                                     |
| [`migrateWithRetry()`](/packages/core/api/functions#migratewithretry)                                              | function |                                                                                                                      |
| [`ensureColumns()`](/packages/core/api/functions#ensurecolumns)                                                    | function | Ensure all required columns exist on a table.  Uses PRAGMA table\_info to insp...                                    |
| [`vacuumIntoBackup()`](/packages/core/api/functions#vacuumintobackup)                                              | function | Create a VACUUM INTO snapshot of the SQLite database.  Debounced by default (...                                     |
| [`listSqliteBackups()`](/packages/core/api/functions#listsqlitebackups)                                            | function | List existing SQLite backup snapshots, newest first.                                                                 |
| [`getBrainDbPath()`](/packages/core/api/functions#getbraindbpath)                                                  | function | Get the path to the brain.db SQLite database file.                                                                   |
| [`resolveBrainMigrationsFolder()`](/packages/core/api/functions#resolvebrainmigrationsfolder)                      | function | Resolve the path to the drizzle-brain migrations folder. Works from both src/...                                     |
| [`isBrainVecLoaded()`](/packages/core/api/functions#isbrainvecloaded)                                              | function | Check whether the sqlite-vec extension is loaded for the current brain.db.                                           |
| [`getBrainDb()`](/packages/core/api/functions#getbraindb)                                                          | function | Initialize the brain.db SQLite database (lazy, singleton). Creates the databa...                                     |
| [`closeBrainDb()`](/packages/core/api/functions#closebraindb)                                                      | function | Close the brain.db database connection and release resources.                                                        |
| [`resetBrainDbState()`](/packages/core/api/functions#resetbraindbstate)                                            | function | Reset brain.db singleton state without saving. Used during tests or when data...                                     |
| [`getBrainNativeDb()`](/packages/core/api/functions#getbrainnativedb)                                              | function | Get the underlying node:sqlite DatabaseSync instance for brain.db. Useful for...                                     |
| [`getNexusDbPath()`](/packages/core/api/functions#getnexusdbpath)                                                  | function | Get the path to the nexus.db SQLite database file. nexus.db lives in the glob...                                     |
| [`resolveNexusMigrationsFolder()`](/packages/core/api/functions#resolvenexusmigrationsfolder)                      | function | Resolve the path to the drizzle-nexus migrations folder. Works from both src/...                                     |
| [`getNexusDb()`](/packages/core/api/functions#getnexusdb)                                                          | function | Initialize the nexus.db SQLite database (lazy, singleton). Creates the databa...                                     |
| [`closeNexusDb()`](/packages/core/api/functions#closenexusdb)                                                      | function | Close the nexus.db database connection and release resources.                                                        |
| [`resetNexusDbState()`](/packages/core/api/functions#resetnexusdbstate)                                            | function | Reset nexus.db singleton state without saving. Used during tests or when data...                                     |
| [`getNexusNativeDb()`](/packages/core/api/functions#getnexusnativedb)                                              | function | Get the underlying node:sqlite DatabaseSync instance for nexus.db. Useful for...                                     |
| [`openNativeDatabase()`](/packages/core/api/functions#opennativedatabase)                                          | function | Open a node:sqlite DatabaseSync with CLEO standard pragmas.  CRITICAL: WAL mo...                                     |
| [`getDbPath()`](/packages/core/api/functions#getdbpath)                                                            | function | Get the path to the SQLite database file.                                                                            |
| [`getDb()`](/packages/core/api/functions#getdb)                                                                    | function | Initialize the SQLite database (lazy, singleton). Creates the database file a...                                     |
| [`resolveMigrationsFolder()`](/packages/core/api/functions#resolvemigrationsfolder)                                | function | Resolve the path to the drizzle migrations folder. Works from both src/ (dev...                                      |
| [`closeDb()`](/packages/core/api/functions#closedb)                                                                | function | Close the database connection and release resources.                                                                 |
| [`resetDbState()`](/packages/core/api/functions#resetdbstate)                                                      | function | Reset database singleton state without saving. Used during migrations when da...                                     |
| [`getSchemaVersion()`](/packages/core/api/functions#getschemaversion)                                              | function | Get the schema version from the database.                                                                            |
| [`dbExists()`](/packages/core/api/functions#dbexists)                                                              | function | Check if the database file exists.                                                                                   |
| [`getNativeDb()`](/packages/core/api/functions#getnativedb)                                                        | function | Get the underlying node:sqlite DatabaseSync instance. Useful for direct PRAGM...                                     |
| [`getNativeTasksDb()`](/packages/core/api/functions#getnativetasksdb)                                              | function | Get the underlying node:sqlite DatabaseSync instance for tasks.db. Alias for...                                      |
| [`closeAllDatabases()`](/packages/core/api/functions#closealldatabases)                                            | function | Close ALL database singletons (tasks.db, brain.db, nexus.db).  Must be called...                                     |
| [`safeParseJson()`](/packages/core/api/functions#safeparsejson)                                                    | function | Parse a JSON string, returning undefined on null/undefined input or parse error.                                     |
| [`safeParseJsonArray()`](/packages/core/api/functions#safeparsejsonarray)                                          | function | Parse a JSON string expected to contain an array. Returns undefined for null/...                                     |
| [`rowToTask()`](/packages/core/api/functions#rowtotask)                                                            | function | Convert a database TaskRow to a domain Task object.                                                                  |
| [`taskToRow()`](/packages/core/api/functions#tasktorow)                                                            | function | Convert a domain Task to a database row for insert/upsert.                                                           |
| [`archivedTaskToRow()`](/packages/core/api/functions#archivedtasktorow)                                            | function | Convert a domain Task to a row suitable for archived tasks.                                                          |
| [`rowToSession()`](/packages/core/api/functions#rowtosession)                                                      | function | Convert a SessionRow to a domain Session.                                                                            |
| [`getSignaldockDbPath()`](/packages/core/api/functions#getsignaldockdbpath)                                        | function | Get the path to the signaldock.db SQLite database file.                                                              |
| [`ensureSignaldockDb()`](/packages/core/api/functions#ensuresignaldockdb)                                          | function | Ensure signaldock.db exists and has the full schema applied.  Idempotent — sa...                                     |
| [`checkSignaldockDbHealth()`](/packages/core/api/functions#checksignaldockdbhealth)                                | function | Check signaldock.db health — table count, WAL mode, schema version.  Used by...                                      |
| [`cleanupBrainRefsOnTaskDelete()`](/packages/core/api/functions#cleanupbrainrefsontaskdelete)                      | function | Clean up brain.db references after a task is deleted from tasks.db.  Handles:...                                     |
| [`cleanupBrainRefsOnSessionDelete()`](/packages/core/api/functions#cleanupbrainrefsonsessiondelete)                | function | Clean up brain.db references after a session is deleted from tasks.db.  Handl...                                     |
| [`taskExistsInTasksDb()`](/packages/core/api/functions#taskexistsintasksdb)                                        | function | Verify a task ID exists in tasks.db before writing a cross-DB reference to br...                                     |
| [`reconcileOrphanedRefs()`](/packages/core/api/functions#reconcileorphanedrefs)                                    | function | Reconcile orphaned cross-DB references in brain.db.  Scans brain.db for refer...                                     |
| [`sessionExistsInTasksDb()`](/packages/core/api/functions#sessionexistsintasksdb)                                  | function |                                                                                                                      |
| [`agentExistsInSignaldockDb()`](/packages/core/api/functions#agentexistsinsignaldockdb)                            | function | Verify an agent exists in signaldock.db before creating cross-DB references....                                      |
| [`getErrorDefinition()`](/packages/core/api/functions#geterrordefinition)                                          | function | Look up an error definition by exit code.                                                                            |
| [`getErrorDefinitionByLafsCode()`](/packages/core/api/functions#geterrordefinitionbylafscode)                      | function | Look up an error definition by LAFS string code.                                                                     |
| [`getAllErrorDefinitions()`](/packages/core/api/functions#getallerrordefinitions)                                  | function | Get all error definitions as an array.                                                                               |
| [`CleoError`](/packages/core/api/functions#cleoerror)                                                              | class    | Structured error class for CLEO operations. Carries an exit code, human-reada...                                     |
| [`upsertTask()`](/packages/core/api/functions#upserttask)                                                          | function | Upsert a single task row into the tasks table. Handles both active task upser...                                     |
| [`upsertSession()`](/packages/core/api/functions#upsertsession)                                                    | function | Upsert a single session row into the sessions table.                                                                 |
| [`updateDependencies()`](/packages/core/api/functions#updatedependencies)                                          | function | Update dependencies for a task: delete existing, then re-insert. Optionally f...                                     |
| [`batchUpdateDependencies()`](/packages/core/api/functions#batchupdatedependencies)                                | function | Batch-update dependencies for multiple tasks in two bulk SQL operations. Repl...                                     |
| [`loadDependenciesForTasks()`](/packages/core/api/functions#loaddependenciesfortasks)                              | function | Batch-load dependencies for a list of tasks and apply them in-place. Uses inA...                                     |
| [`loadRelationsForTasks()`](/packages/core/api/functions#loadrelationsfortasks)                                    | function | Batch-load relations for a list of tasks and apply them in-place. Mirrors loa...                                     |
| [`generateAgentId()`](/packages/core/api/functions#generateagentid)                                                | function | Generate a unique agent instance ID. Format: `agt_{YYYYMMDDHHmmss}_{6hex}`                                           |
| [`registerAgent()`](/packages/core/api/functions#registeragent)                                                    | function | Register a new agent instance in the database. Sets initial status to 'starti...                                     |
| [`deregisterAgent()`](/packages/core/api/functions#deregisteragent)                                                | function | Deregister (stop) an agent instance. Sets status to 'stopped' and records the...                                     |
| [`heartbeat()`](/packages/core/api/functions#heartbeat)                                                            | function | Record a heartbeat for an agent instance. Updates `last_heartbeat` and return...                                     |
| [`updateAgentStatus()`](/packages/core/api/functions#updateagentstatus)                                            | function | Update agent status with optional error tracking. When status is 'error' or '...                                     |
| [`incrementTasksCompleted()`](/packages/core/api/functions#incrementtaskscompleted)                                | function | Increment the completed task count for an agent.                                                                     |
| [`listAgentInstances()`](/packages/core/api/functions#listagentinstances)                                          | function | List agent instances with optional filters.                                                                          |
| [`getAgentInstance()`](/packages/core/api/functions#getagentinstance)                                              | function | Get a single agent instance by ID.                                                                                   |
| [`classifyError()`](/packages/core/api/functions#classifyerror)                                                    | function | Classify an error as retriable, permanent, or unknown.  Retriable errors are...                                      |
| [`getAgentErrorHistory()`](/packages/core/api/functions#getagenterrorhistory)                                      | function | Get the error history for a specific agent.                                                                          |
| [`checkAgentHealth()`](/packages/core/api/functions#checkagenthealth)                                              | function | Check agent health by finding instances whose last heartbeat exceeds the thre...                                     |
| [`markCrashed()`](/packages/core/api/functions#markcrashed)                                                        | function | Mark an agent instance as crashed. Increments error count and sets status to...                                      |
| [`getHealthReport()`](/packages/core/api/functions#gethealthreport)                                                | function | Generate a health report summarizing all agent instances. Includes counts by...                                      |
| [`setMetaValue()`](/packages/core/api/functions#setmetavalue)                                                      | function | Write a JSON blob to the schema\_meta table by key.                                                                  |
| [`createSqliteDataAccessor()`](/packages/core/api/functions#createsqlitedataaccessor)                              | function | Create a SQLite-backed DataAccessor.  Opens (or creates) the SQLite database...                                      |
| [`atomicWrite()`](/packages/core/api/functions#atomicwrite)                                                        | function | Write data to a file atomically. Creates parent directories if they don't exi...                                     |
| [`safeReadFile()`](/packages/core/api/functions#safereadfile)                                                      | function | Read a file and return its contents. Returns null if the file does not exist.                                        |
| [`atomicWriteJson()`](/packages/core/api/functions#atomicwritejson)                                                | function | Write JSON data atomically with consistent formatting.                                                               |
| [`atomicDatabaseMigration()`](/packages/core/api/functions#atomicdatabasemigration)                                | function | Perform atomic database migration using rename operations.  Pattern:   1. Wri...                                     |
| [`restoreDatabaseFromBackup()`](/packages/core/api/functions#restoredatabasefrombackup)                            | function | Restore database from backup after failed migration.                                                                 |
| [`cleanupMigrationArtifacts()`](/packages/core/api/functions#cleanupmigrationartifacts)                            | function | Clean up migration artifacts after successful migration.                                                             |
| [`validateSqliteDatabase()`](/packages/core/api/functions#validatesqlitedatabase)                                  | function | Validate SQLite database integrity by attempting to open it.                                                         |
| [`createBackup()`](/packages/core/api/functions#createbackup)                                                      | function | Create a numbered backup of a file. Rotates existing backups (file.1 - file.2...                                     |
| [`listBackups()`](/packages/core/api/functions#listbackups)                                                        | function | List existing backups for a file, sorted by number (newest first).                                                   |
| [`restoreFromBackup()`](/packages/core/api/functions#restorefrombackup)                                            | function | Restore a file from its most recent backup. Returns the path of the backup th...                                     |
| [`acquireLock()`](/packages/core/api/functions#acquirelock)                                                        | function | Acquire an exclusive lock on a file. Returns a release function that must be...                                      |
| [`isLocked()`](/packages/core/api/functions#islocked)                                                              | function | Check if a file is currently locked.                                                                                 |
| [`withLock()`](/packages/core/api/functions#withlock)                                                              | function | Execute a function while holding an exclusive lock on a file. The lock is aut...                                     |
| [`isProviderHookEvent()`](/packages/core/api/functions#isproviderhookevent)                                        | function | Type guard for CAAMP/provider-discoverable canonical hook events.                                                    |
| [`isInternalHookEvent()`](/packages/core/api/functions#isinternalhookevent)                                        | function | Type guard for CLEO-local coordination hook events.                                                                  |
| [`HookRegistry`](/packages/core/api/functions#hookregistry)                                                        | class    | Central registry for hook handlers.  Manages registration, priority-based ord...                                     |
| [`readJson()`](/packages/core/api/functions#readjson)                                                              | function | Read and parse a JSON file. Returns null if the file does not exist.                                                 |
| [`readJsonRequired()`](/packages/core/api/functions#readjsonrequired)                                              | function | Read a JSON file, throwing if it doesn't exist.                                                                      |
| [`computeChecksum()`](/packages/core/api/functions#computechecksum)                                                | function | Compute a truncated SHA-256 checksum of a value. Used for integrity verificat...                                     |
| [`saveJson()`](/packages/core/api/functions#savejson)                                                              | function | Save JSON data with optional locking, backup, and validation. Follows the CLE...                                     |
| [`appendJsonl()`](/packages/core/api/functions#appendjsonl)                                                        | function | Append a line to a JSONL file atomically. Used for manifest entries and audit...                                     |
| [`readLogEntries()`](/packages/core/api/functions#readlogentries)                                                  | function | Read log entries from a hybrid JSON/JSONL file. Handles three formats:   1. P...                                     |
| [`makeCleoGitEnv()`](/packages/core/api/functions#makecleogitenv)                                                  | function | Build environment variables that point git at the isolated .cleo/.git repo....                                       |
| [`cleoGitCommand()`](/packages/core/api/functions#cleogitcommand)                                                  | function | Run a git command against the isolated .cleo/.git repo, suppressing errors....                                       |
| [`isCleoGitInitialized()`](/packages/core/api/functions#iscleogitinitialized)                                      | function | Check whether the isolated .cleo/.git repo has been initialized.  T4872                                              |
| [`loadStateFileAllowlist()`](/packages/core/api/functions#loadstatefileallowlist)                                  | function | Load additional state file paths from config.json...                                                                 |
| [`loadCheckpointConfig()`](/packages/core/api/functions#loadcheckpointconfig)                                      | function | Load checkpoint configuration from config.json.  T4552                                                               |
| [`shouldCheckpoint()`](/packages/core/api/functions#shouldcheckpoint)                                              | function | Check whether a checkpoint should be performed. Evaluates: enabled, .cleo/.gi...                                     |
| [`gitCheckpoint()`](/packages/core/api/functions#gitcheckpoint)                                                    | function | Stage .cleo/ state files and commit to the isolated .cleo/.git repo. Never fa...                                     |
| [`gitCheckpointStatus()`](/packages/core/api/functions#gitcheckpointstatus)                                        | function | Show checkpoint configuration and status.  T4552  T4872                                                              |
| [`gitCheckpointDryRun()`](/packages/core/api/functions#gitcheckpointdryrun)                                        | function | Show what files would be committed (dry-run).  T4552  T4872                                                          |
| [`DataSafetyError`](/packages/core/api/functions#datasafetyerror)                                                  | class    | Safety violation error                                                                                               |
| [`getSafetyStats()`](/packages/core/api/functions#getsafetystats)                                                  | function | Get current safety statistics                                                                                        |
| [`resetSafetyStats()`](/packages/core/api/functions#resetsafetystats)                                              | function | Reset safety statistics (for testing)                                                                                |
| [`safeSaveSessions()`](/packages/core/api/functions#safesavesessions)                                              | function | Safe wrapper for DataAccessor.saveSessions()                                                                         |
| [`safeSaveArchive()`](/packages/core/api/functions#safesavearchive)                                                | function | Safe wrapper for DataAccessor.saveArchive()                                                                          |
| [`safeSingleTaskWrite()`](/packages/core/api/functions#safesingletaskwrite)                                        | function | Safe wrapper for single-task write operations (T5034).  Performs: 1. Sequence...                                     |
| [`safeAppendLog()`](/packages/core/api/functions#safeappendlog)                                                    | function | Safe wrapper for DataAccessor.appendLog()  Note: Log appends are fire-and-for...                                     |
| [`runDataIntegrityCheck()`](/packages/core/api/functions#rundataintegritycheck)                                    | function | Run comprehensive data integrity check. Validates all data files and sequence...                                     |
| [`forceSafetyCheckpoint()`](/packages/core/api/functions#forcesafetycheckpoint)                                    | function | Force immediate checkpoint. Use before destructive operations.                                                       |
| [`disableSafety()`](/packages/core/api/functions#disablesafety)                                                    | function | Disable all safety for current process. DANGEROUS - only use for recovery ope...                                     |
| [`enableSafety()`](/packages/core/api/functions#enablesafety)                                                      | function | Re-enable safety after being disabled.                                                                               |
| [`SafetyDataAccessor`](/packages/core/api/functions#safetydataaccessor)                                            | class    | Safety-enabled DataAccessor wrapper.  Wraps any DataAccessor implementation a...                                     |
| [`wrapWithSafety()`](/packages/core/api/functions#wrapwithsafety)                                                  | function | Wrap a DataAccessor with safety.  This is the internal factory helper that wr...                                     |
| [`isSafetyEnabled()`](/packages/core/api/functions#issafetyenabled)                                                | function | Check if safety is currently enabled.                                                                                |
| [`getSafetyStatus()`](/packages/core/api/functions#getsafetystatus)                                                | function | Get safety status information.                                                                                       |
| [`createDataAccessor()`](/packages/core/api/functions#createdataaccessor)                                          | function | Create a DataAccessor for the given working directory. Always creates a SQLit...                                     |
| [`getAccessor()`](/packages/core/api/functions#getaccessor)                                                        | function | Convenience: get a DataAccessor with auto-detected engine.                                                           |
| [`showSequence()`](/packages/core/api/functions#showsequence)                                                      | function | Show current sequence state.                                                                                         |
| [`checkSequence()`](/packages/core/api/functions#checksequence)                                                    | function | Check sequence integrity.                                                                                            |
| [`repairSequence()`](/packages/core/api/functions#repairsequence)                                                  | function | Repair sequence if behind.                                                                                           |
| [`allocateNextTaskId()`](/packages/core/api/functions#allocatenexttaskid)                                          | function | Atomically allocate the next task ID via SQLite.  Uses BEGIN IMMEDIATE to gua...                                     |
| [`SafetyError`](/packages/core/api/functions#safetyerror)                                                          | class    | Safety violation error.                                                                                              |
| [`checkTaskExists()`](/packages/core/api/functions#checktaskexists)                                                | function | Check if a task ID already exists (collision detection).                                                             |
| [`verifyTaskWrite()`](/packages/core/api/functions#verifytaskwrite)                                                | function | Verify a task was actually written to the database.                                                                  |
| [`validateAndRepairSequence()`](/packages/core/api/functions#validateandrepairsequence)                            | function | Validate and repair sequence if necessary.                                                                           |
| [`triggerCheckpoint()`](/packages/core/api/functions#triggercheckpoint)                                            | function | Trigger auto-checkpoint after successful write.                                                                      |
| [`safeCreateTask()`](/packages/core/api/functions#safecreatetask)                                                  | function | Safely create a task with all safety mechanisms. Wraps the actual createTask...                                      |
| [`safeUpdateTask()`](/packages/core/api/functions#safeupdatetask)                                                  | function | Safely update a task with all safety mechanisms.                                                                     |
| [`safeDeleteTask()`](/packages/core/api/functions#safedeletetask)                                                  | function | Safely delete a task with all safety mechanisms.                                                                     |
| [`verifySessionWrite()`](/packages/core/api/functions#verifysessionwrite)                                          | function | Verify session write.                                                                                                |
| [`safeCreateSession()`](/packages/core/api/functions#safecreatesession)                                            | function | Safely create a session with all safety mechanisms.                                                                  |
| [`forceCheckpointBeforeOperation()`](/packages/core/api/functions#forcecheckpointbeforeoperation)                  | function | Force a checkpoint before destructive operations. Use this before migrations,...                                     |
| [`runDataIntegrityCheck()`](/packages/core/api/functions#rundataintegritycheck)                                    | function | Run comprehensive data integrity check. Reports all issues found.                                                    |
| [`getTask()`](/packages/core/api/functions#gettask)                                                                | function | Get a task by ID, including its dependencies.                                                                        |
| [`updateTask()`](/packages/core/api/functions#updatetask)                                                          | function | Update an existing task.                                                                                             |
| [`deleteTask()`](/packages/core/api/functions#deletetask)                                                          | function | Delete a task by ID.                                                                                                 |
| [`listTasks()`](/packages/core/api/functions#listtasks)                                                            | function | List tasks with optional filters.                                                                                    |
| [`findTasks()`](/packages/core/api/functions#findtasks)                                                            | function | Find tasks by fuzzy text search.                                                                                     |
| [`archiveTask()`](/packages/core/api/functions#archivetask)                                                        | function | Archive a task (sets status to 'archived' with metadata).                                                            |
| [`addDependency()`](/packages/core/api/functions#adddependency)                                                    | function | Add a dependency between tasks.                                                                                      |
| [`removeDependency()`](/packages/core/api/functions#removedependency)                                              | function | Remove a dependency.                                                                                                 |
| [`addRelation()`](/packages/core/api/functions#addrelation)                                                        | function | Add a relation between tasks.                                                                                        |
| [`getRelations()`](/packages/core/api/functions#getrelations)                                                      | function | Get relations for a task.                                                                                            |
| [`getBlockerChain()`](/packages/core/api/functions#getblockerchain)                                                | function | Get the dependency chain (blockers) for a task using recursive CTE.                                                  |
| [`getChildren()`](/packages/core/api/functions#getchildren)                                                        | function | Get children of a task (hierarchy).                                                                                  |
| [`getSubtree()`](/packages/core/api/functions#getsubtree)                                                          | function | Build a tree from a root task using recursive CTE.                                                                   |
| [`countByStatus()`](/packages/core/api/functions#countbystatus)                                                    | function | Count tasks by status.                                                                                               |
| [`countTasks()`](/packages/core/api/functions#counttasks)                                                          | function | Get total task count (excluding archived).                                                                           |
| [`createTask()`](/packages/core/api/functions#createtask)                                                          | function | Create a task with full safety protections. Includes: collision detection, wr...                                     |
| [`updateTaskSafe()`](/packages/core/api/functions#updatetasksafe)                                                  | function | Update a task with full safety protections. Includes: write verification, aut...                                     |
| [`deleteTaskSafe()`](/packages/core/api/functions#deletetasksafe)                                                  | function | Delete a task with full safety protections. Includes: delete verification, au...                                     |
| [`taskShowNext()`](/packages/core/api/functions#taskshownext)                                                      | function | Build `_next` directives for a full task detail result (tasks.show).                                                 |
| [`taskListItemNext()`](/packages/core/api/functions#tasklistitemnext)                                              | function | Build `_next` directives for a task in a list or find result.                                                        |
| [`sessionListItemNext()`](/packages/core/api/functions#sessionlistitemnext)                                        | function | Build `_next` directives for a session in a list or find result.                                                     |
| [`sessionStartNext()`](/packages/core/api/functions#sessionstartnext)                                              | function | Build `_next` directives for a session start result.                                                                 |
| [`memoryFindHitNext()`](/packages/core/api/functions#memoryfindhitnext)                                            | function | Build `_next` directives for a memory search (find) hit.                                                             |
| [`showTask()`](/packages/core/api/functions#showtask)                                                              | function | Get a task by ID with enriched details. Checks active tasks first, then archi...                                     |
| [`createPage()`](/packages/core/api/functions#createpage)                                                          | function | Create an LAFSPage object from pagination parameters.  Returns mode:"none" wh...                                     |
| [`paginate()`](/packages/core/api/functions#paginate)                                                              | function | Apply pagination to an array of items and return the sliced result with page...                                      |
| [`toCompact()`](/packages/core/api/functions#tocompact)                                                            | function | Convert a full Task to compact representation with \_next directives.                                                |
| [`listTasks()`](/packages/core/api/functions#listtasks)                                                            | function | List tasks with optional filtering and pagination.  T4460                                                            |
| [`fuzzyScore()`](/packages/core/api/functions#fuzzyscore)                                                          | function | Calculate fuzzy match score between query and text. Higher score = better mat...                                     |
| [`findTasks()`](/packages/core/api/functions#findtasks)                                                            | function | Search tasks by fuzzy matching, ID prefix, or exact title. Returns minimal fi...                                     |
| [`extractAdrId()`](/packages/core/api/functions#extractadrid)                                                      | function | Extract ADR ID from filename (e.g., 'ADR-007-domain-consolidation.md' - 'ADR-...                                     |
| [`parseFrontmatter()`](/packages/core/api/functions#parsefrontmatter)                                              | function | Parse bold-key frontmatter pattern: **Key**: value                                                                   |
| [`extractTitle()`](/packages/core/api/functions#extracttitle)                                                      | function | Extract H1 title from markdown                                                                                       |
| [`parseAdrFile()`](/packages/core/api/functions#parseadrfile)                                                      | function | Parse a single ADR markdown file into an AdrRecord                                                                   |
| [`linkPipelineAdr()`](/packages/core/api/functions#linkpipelineadr)                                                | function | Link ADRs to a pipeline task when the architecture\_decision stage completes.                                        |
| [`syncAdrsToDb()`](/packages/core/api/functions#syncadrstodb)                                                      | function | Sync all ADR markdown files into the architecture\_decisions table AND regener...                                    |
| [`recordEvidence()`](/packages/core/api/functions#recordevidence)                                                  | function | Record an evidence artifact linked to a lifecycle stage.  Writes to the SQLit...                                     |
| [`getEvidence()`](/packages/core/api/functions#getevidence)                                                        | function | Query evidence records for an epic, optionally filtered by stage.                                                    |
| [`linkProvenance()`](/packages/core/api/functions#linkprovenance)                                                  | function | Convenience wrapper to record a file as provenance evidence.  Converts the fi...                                     |
| [`getEvidenceSummary()`](/packages/core/api/functions#getevidencesummary)                                          | function | Aggregate evidence counts per stage for an epic.                                                                     |
| [`normalizeEpicId()`](/packages/core/api/functions#normalizeepicid)                                                | function | Strip suffixes from epic directory names. E.g. `T4881_install-channels` -...                                         |
| [`getRcasdBaseDir()`](/packages/core/api/functions#getrcasdbasedir)                                                | function | Get the absolute path to the `.cleo/rcasd/` base directory.                                                          |
| [`getEpicDir()`](/packages/core/api/functions#getepicdir)                                                          | function | Get the absolute path to `.cleo/rcasd/{epicId}/`. Uses the normalized epic ID...                                     |
| [`findEpicDir()`](/packages/core/api/functions#findepicdir)                                                        | function | Search both `rcasd/` and legacy `rcsd/` for an existing epic directory. Also...                                      |
| [`getStagePath()`](/packages/core/api/functions#getstagepath)                                                      | function | Get the stage subdirectory path for an epic. Uses STAGE\_SUBDIRS mapping, fall...                                    |
| [`ensureStagePath()`](/packages/core/api/functions#ensurestagepath)                                                | function | Get the stage subdirectory path, creating it if it does not exist.                                                   |
| [`getManifestPath()`](/packages/core/api/functions#getmanifestpath)                                                | function | Get the manifest path for an epic under the default rcasd directory.                                                 |
| [`findManifestPath()`](/packages/core/api/functions#findmanifestpath)                                              | function | Search both `rcasd/` and `rcsd/` for an existing manifest file. Checks suffix...                                     |
| [`getLooseResearchFiles()`](/packages/core/api/functions#getlooseresearchfiles)                                    | function | Scan the rcasd root directory for loose `T####_*.md` files that are not insid...                                     |
| [`listEpicDirs()`](/packages/core/api/functions#listepicdirs)                                                      | function | List all epic directories across `rcasd/` and `rcsd/`.                                                               |
| [`parseFrontmatter()`](/packages/core/api/functions#parsefrontmatter)                                              | function | Parse YAML frontmatter from a markdown string.  Finds the YAML block delimite...                                     |
| [`serializeFrontmatter()`](/packages/core/api/functions#serializefrontmatter)                                      | function | Convert a FrontmatterMetadata object to a YAML frontmatter string.  Output fo...                                     |
| [`addFrontmatter()`](/packages/core/api/functions#addfrontmatter)                                                  | function | Add or replace YAML frontmatter in markdown content.  If the content already...                                      |
| [`buildFrontmatter()`](/packages/core/api/functions#buildfrontmatter)                                              | function | Convenience builder for common frontmatter patterns.  Auto-sets `updated` to...                                      |
| [`getBacklinks()`](/packages/core/api/functions#getbacklinks)                                                      | function | Scan all markdown files in `.cleo/rcasd/` for files that reference the given...                                      |
| [`getStageOrder()`](/packages/core/api/functions#getstageorder)                                                    | function | Get the order/index of a stage (1-based).                                                                            |
| [`isStageBefore()`](/packages/core/api/functions#isstagebefore)                                                    | function | Check if stage A comes before stage B in the pipeline.                                                               |
| [`isStageAfter()`](/packages/core/api/functions#isstageafter)                                                      | function | Check if stage A comes after stage B in the pipeline.                                                                |
| [`getNextStage()`](/packages/core/api/functions#getnextstage)                                                      | function | Get the next stage in the pipeline.                                                                                  |
| [`getPreviousStage()`](/packages/core/api/functions#getpreviousstage)                                              | function | Get the previous stage in the pipeline.                                                                              |
| [`getStagesBetween()`](/packages/core/api/functions#getstagesbetween)                                              | function | Get all stages between two stages (inclusive).                                                                       |
| [`getPrerequisites()`](/packages/core/api/functions#getprerequisites)                                              | function | Get prerequisites for a stage.                                                                                       |
| [`isPrerequisite()`](/packages/core/api/functions#isprerequisite)                                                  | function | Check if one stage is a prerequisite of another.                                                                     |
| [`getDependents()`](/packages/core/api/functions#getdependents)                                                    | function | Get all stages that depend on a given stage.                                                                         |
| [`isValidStage()`](/packages/core/api/functions#isvalidstage)                                                      | function | Check if a stage name is valid.                                                                                      |
| [`validateStage()`](/packages/core/api/functions#validatestage)                                                    | function | Validate a stage name and throw if invalid.                                                                          |
| [`isValidStageStatus()`](/packages/core/api/functions#isvalidstagestatus)                                          | function | Check if a stage status is valid.                                                                                    |
| [`getStagesByCategory()`](/packages/core/api/functions#getstagesbycategory)                                        | function | Get stages by category.                                                                                              |
| [`getSkippableStages()`](/packages/core/api/functions#getskippablestages)                                          | function | Get skippable stages.                                                                                                |
| [`checkTransition()`](/packages/core/api/functions#checktransition)                                                | function | Check if a transition is allowed.                                                                                    |
| [`ensureStageArtifact()`](/packages/core/api/functions#ensurestageartifact)                                        | function | Ensure stage artifact exists and frontmatter/backlinks are up to date.                                               |
| [`getSkillSearchPaths()`](/packages/core/api/functions#getskillsearchpaths)                                        | function | Build the CAAMP skill search paths in priority order. Uses CAAMP's canonical...                                      |
| [`getSkillsDir()`](/packages/core/api/functions#getskillsdir)                                                      | function | Get the primary skills directory (app-embedded).  T4516                                                              |
| [`getSharedDir()`](/packages/core/api/functions#getshareddir)                                                      | function | Get the shared skills resources directory.  T4516                                                                    |
| [`mapSkillName()`](/packages/core/api/functions#mapskillname)                                                      | function | Map a user-friendly skill name to the canonical ct-prefixed directory name. S...                                     |
| [`listCanonicalSkillNames()`](/packages/core/api/functions#listcanonicalskillnames)                                | function | List all known canonical skill names (unique values from the map).  T4516                                            |
| [`parseFrontmatter()`](/packages/core/api/functions#parsefrontmatter)                                              | function | Parse YAML-like frontmatter from a SKILL.md file. Handles the --- delimited h...                                     |
| [`discoverSkill()`](/packages/core/api/functions#discoverskill)                                                    | function | Discover a single skill from a directory. Tries CAAMP's parseSkillFile first,...                                     |
| [`discoverSkillsInDir()`](/packages/core/api/functions#discoverskillsindir)                                        | function | Discover all skills in a single directory. Scans for subdirectories containin...                                     |
| [`discoverAllSkills()`](/packages/core/api/functions#discoverallskills)                                            | function | Discover all skills across CAAMP search paths. Returns skills in priority ord...                                     |
| [`findSkill()`](/packages/core/api/functions#findskill)                                                            | function | Find a specific skill by name across all search paths.  T4516                                                        |
| [`toSkillSummary()`](/packages/core/api/functions#toskillsummary)                                                  | function | Convert a Skill to a lightweight SkillSummary.  T4516                                                                |
| [`generateManifest()`](/packages/core/api/functions#generatemanifest)                                              | function | Generate a skill manifest from discovered skills.  T4516                                                             |
| [`resolveTemplatePath()`](/packages/core/api/functions#resolvetemplatepath)                                        | function | Resolve a skill template path (SKILL.md) by name.  T4516                                                             |
| [`loadPlaceholders()`](/packages/core/api/functions#loadplaceholders)                                              | function | Load token definitions from placeholders.json.  T4521                                                                |
| [`buildDefaults()`](/packages/core/api/functions#builddefaults)                                                    | function | Build the full default values map (merging placeholders.json with hardcoded d...                                     |
| [`validateTokenValue()`](/packages/core/api/functions#validatetokenvalue)                                          | function | Validate a single token value against its pattern.  T4521                                                            |
| [`validateRequired()`](/packages/core/api/functions#validaterequired)                                              | function | Validate all required tokens are present and valid.  T4521                                                           |
| [`validateAllTokens()`](/packages/core/api/functions#validatealltokens)                                            | function | Validate all tokens in a values map (required + optional).  T4521                                                    |
| [`injectTokens()`](/packages/core/api/functions#injecttokens)                                                      | function | Inject token values into a template string. Replaces all TOKEN\_NAME patterns...                                     |
| [`hasUnresolvedTokens()`](/packages/core/api/functions#hasunresolvedtokens)                                        | function | Check if a template has unresolved tokens after injection.  T4521                                                    |
| [`loadAndInject()`](/packages/core/api/functions#loadandinject)                                                    | function | Load a skill template and inject tokens.  T4521                                                                      |
| [`setFullContext()`](/packages/core/api/functions#setfullcontext)                                                  | function | Build a complete TokenValues map from a task, resolving all standard tokens....                                      |
| [`autoDispatch()`](/packages/core/api/functions#autodispatch)                                                      | function | Auto-dispatch a task to the most appropriate skill. Tries strategies in prior...                                     |
| [`dispatchExplicit()`](/packages/core/api/functions#dispatchexplicit)                                              | function | Dispatch with explicit skill override. Verifies the skill exists before retur...                                     |
| [`getProtocolForDispatch()`](/packages/core/api/functions#getprotocolfordispatch)                                  | function | Get the protocol type for a dispatch result.  T4517                                                                  |
| [`prepareSpawnContext()`](/packages/core/api/functions#preparespawncontext)                                        | function | Prepare spawn context for a dispatched skill. Returns the skill name and prot...                                     |
| [`prepareSpawnMulti()`](/packages/core/api/functions#preparespawnmulti)                                            | function | Compose multiple skills into a single prompt with progressive disclosure. Por...                                     |
| [`buildStageGuidance()`](/packages/core/api/functions#buildstageguidance)                                          | function | Build structured stage guidance for a given pipeline stage.  Resolves the pri...                                     |
| [`formatStageGuidance()`](/packages/core/api/functions#formatstageguidance)                                        | function | Format stage guidance as a Markdown-wrapped system prompt.  Since...                                                 |
| [`renderStageGuidance()`](/packages/core/api/functions#renderstageguidance)                                        | function | Convenience wrapper: build AND format in a single call.                                                              |
| [`getLifecycleState()`](/packages/core/api/functions#getlifecyclestate)                                            | function | Get the current lifecycle state for an epic.  T4467                                                                  |
| [`startStage()`](/packages/core/api/functions#startstage)                                                          | function | Start a lifecycle stage.  T4467                                                                                      |
| [`completeStage()`](/packages/core/api/functions#completestage)                                                    | function | Complete a lifecycle stage.  T4467                                                                                   |
| [`skipStage()`](/packages/core/api/functions#skipstage)                                                            | function | Skip a lifecycle stage.  T4467                                                                                       |
| [`checkGate()`](/packages/core/api/functions#checkgate)                                                            | function | Check lifecycle gate before starting a stage.  T4467                                                                 |
| [`getLifecycleStatus()`](/packages/core/api/functions#getlifecyclestatus)                                          | function | Get lifecycle status for an epic from SQLite. Returns stage progress, current...                                     |
| [`getLifecycleHistory()`](/packages/core/api/functions#getlifecyclehistory)                                        | function | Get lifecycle history for an epic. Returns stage transitions and gate events...                                      |
| [`getLifecycleGates()`](/packages/core/api/functions#getlifecyclegates)                                            | function | Get all gate statuses for an epic.  T4785                                                                            |
| [`getStagePrerequisites()`](/packages/core/api/functions#getstageprerequisites)                                    | function | Get prerequisites for a target stage. Pure data function, no I/O.  T4785                                             |
| [`checkStagePrerequisites()`](/packages/core/api/functions#checkstageprerequisites)                                | function | Check if a stage's prerequisites are met for an epic.  T4785                                                         |
| [`recordStageProgress()`](/packages/core/api/functions#recordstageprogress)                                        | function | Record a stage status transition (progress/record). SQLite-native implementat...                                     |
| [`skipStageWithReason()`](/packages/core/api/functions#skipstagewithreason)                                        | function | Skip a stage with a reason (engine-compatible).  T4785                                                               |
| [`resetStage()`](/packages/core/api/functions#resetstage)                                                          | function | Reset a stage to pending (emergency).  T4785                                                                         |
| [`passGate()`](/packages/core/api/functions#passgate)                                                              | function | Mark a gate as passed. SQLite-native implementation - T4801  T4785  T4801                                            |
| [`failGate()`](/packages/core/api/functions#failgate)                                                              | function | Mark a gate as failed. SQLite-native implementation - T4801  T4785  T4801                                            |
| [`listEpicsWithLifecycle()`](/packages/core/api/functions#listepicswithlifecycle)                                  | function | List all epic IDs that have lifecycle data.  T4785                                                                   |
| [`getCurrentSessionId()`](/packages/core/api/functions#getcurrentsessionid)                                        | function | Get the current session ID.                                                                                          |
| [`getContextStatePath()`](/packages/core/api/functions#getcontextstatepath)                                        | function | Get context state file path for a session.                                                                           |
| [`readContextState()`](/packages/core/api/functions#readcontextstate)                                              | function | Read context state for a session. Returns null if stale or missing.                                                  |
| [`getThresholdLevel()`](/packages/core/api/functions#getthresholdlevel)                                            | function | Determine the threshold level for a given percentage.                                                                |
| [`shouldAlert()`](/packages/core/api/functions#shouldalert)                                                        | function | Determine if we should alert based on threshold crossing. Returns the alert l...                                     |
| [`getRecommendedAction()`](/packages/core/api/functions#getrecommendedaction)                                      | function | Get recommended action for an alert level.                                                                           |
| [`checkContextAlert()`](/packages/core/api/functions#checkcontextalert)                                            | function | Main function to check and determine if an alert should fire. Non-blocking -...                                      |
| [`pushWarning()`](/packages/core/api/functions#pushwarning)                                                        | function | Push a deprecation or informational warning into the current envelope. Warnin...                                     |
| [`formatSuccess()`](/packages/core/api/functions#formatsuccess)                                                    | function | Format a successful result as a full LAFS-conformant envelope.  Always produc...                                     |
| [`formatError()`](/packages/core/api/functions#formaterror)                                                        | function | Format an error as a full LAFS-conformant envelope.  Always produces the full...                                     |
| [`formatOutput()`](/packages/core/api/functions#formatoutput)                                                      | function | Format any result (success or error) as LAFS JSON.                                                                   |
| [`getRegistryEntry()`](/packages/core/api/functions#getregistryentry)                                              | function | Look up a registry entry by CLEO exit code.   T4671  T4663                                                           |
| [`getRegistryEntryByLafsCode()`](/packages/core/api/functions#getregistryentrybylafscode)                          | function | Look up a registry entry by LAFS string code.   T4671  T4663                                                         |
| [`getCleoErrorRegistry()`](/packages/core/api/functions#getcleoerrorregistry)                                      | function | Get the full CLEO error registry for conformance testing.   T4671  T4663                                             |
| [`isCleoRegisteredCode()`](/packages/core/api/functions#iscleoregisteredcode)                                      | function | Check if a LAFS code is registered in the CLEO error registry.   T4671  T4663                                        |
| [`createTestDb()`](/packages/core/api/functions#createtestdb)                                                      | function | Create a temporary directory with an initialized tasks.db.  Usage:                                                   |
| [`makeTasks()`](/packages/core/api/functions#maketasks)                                                            | function | Build full Task objects from a list of task partials. Useful for seeding test...                                     |
| [`seedTasks()`](/packages/core/api/functions#seedtasks)                                                            | function | Seed tasks into the test database via the accessor.  Uses a two-pass approach...                                     |
| [`getChildren()`](/packages/core/api/functions#getchildren)                                                        | function | Get direct children of a task.                                                                                       |
| [`getChildIds()`](/packages/core/api/functions#getchildids)                                                        | function | Get direct child IDs.                                                                                                |
| [`getDescendants()`](/packages/core/api/functions#getdescendants)                                                  | function | Get all descendants of a task (recursive).                                                                           |
| [`getDescendantIds()`](/packages/core/api/functions#getdescendantids)                                              | function | Get all descendant IDs (flat list).                                                                                  |
| [`getParentChain()`](/packages/core/api/functions#getparentchain)                                                  | function | Get the parent chain (ancestors) from a task up to the root. Returns ordered...                                      |
| [`getParentChainIds()`](/packages/core/api/functions#getparentchainids)                                            | function | Get the parent chain as IDs.                                                                                         |
| [`getDepth()`](/packages/core/api/functions#getdepth)                                                              | function | Calculate depth of a task in the hierarchy (0-based). Root tasks have depth 0...                                     |
| [`getRootAncestor()`](/packages/core/api/functions#getrootancestor)                                                | function | Get the root ancestor of a task.                                                                                     |
| [`isAncestorOf()`](/packages/core/api/functions#isancestorof)                                                      | function | Check if a task is an ancestor of another.                                                                           |
| [`isDescendantOf()`](/packages/core/api/functions#isdescendantof)                                                  | function | Check if a task is a descendant of another.                                                                          |
| [`getSiblings()`](/packages/core/api/functions#getsiblings)                                                        | function | Get sibling tasks (same parent).                                                                                     |
| [`validateHierarchy()`](/packages/core/api/functions#validatehierarchy)                                            | function |                                                                                                                      |
| [`wouldCreateCircle()`](/packages/core/api/functions#wouldcreatecircle)                                            | function | Detect circular reference if parentId were set.                                                                      |
| [`buildTree()`](/packages/core/api/functions#buildtree)                                                            | function |                                                                                                                      |
| [`flattenTree()`](/packages/core/api/functions#flattentree)                                                        | function | Flatten a tree back to a list (depth-first).                                                                         |
| [`resolveHierarchyPolicy()`](/packages/core/api/functions#resolvehierarchypolicy)                                  | function | Resolve a full HierarchyPolicy from config, starting with a profile preset an...                                     |
| [`assertParentExists()`](/packages/core/api/functions#assertparentexists)                                          | function | Assert that a parent task exists in the task list. Returns an error result if...                                     |
| [`assertNoCycle()`](/packages/core/api/functions#assertnocycle)                                                    | function | Assert that re-parenting would not create a cycle. Returns an error result if...                                     |
| [`countActiveChildren()`](/packages/core/api/functions#countactivechildren)                                        | function | Count active (non-done, non-cancelled, non-archived) children of a parent.                                           |
| [`validateHierarchyPlacement()`](/packages/core/api/functions#validatehierarchyplacement)                          | function | Validate whether a new task can be placed under the given parent according to...                                     |
| [`loadConfig()`](/packages/core/api/functions#loadconfig)                                                          | function | Load and merge configuration from all sources. Priority: defaults  global con...                                     |
| [`getConfigValue()`](/packages/core/api/functions#getconfigvalue)                                                  | function | Get a single config value with source tracking. Returns the value and which s...                                     |
| [`getRawConfigValue()`](/packages/core/api/functions#getrawconfigvalue)                                            | function | Get a raw config value from the project config file only (no cascade). Return...                                     |
| [`getRawConfig()`](/packages/core/api/functions#getrawconfig)                                                      | function | Get the full raw project config (no cascade). Returns null if no config file...                                      |
| [`parseConfigValue()`](/packages/core/api/functions#parseconfigvalue)                                              | function | Parse a string value into its appropriate JS type. Handles booleans, null, in...                                     |
| [`setConfigValue()`](/packages/core/api/functions#setconfigvalue)                                                  | function | Set a config value in the project or global config file (dot-notation support...                                     |
| [`applyStrictnessPreset()`](/packages/core/api/functions#applystrictnesspreset)                                    | function | Apply a strictness preset to the project (or global) config. Merges preset va...                                     |
| [`listStrictnessPresets()`](/packages/core/api/functions#liststrictnesspresets)                                    | function | List all available presets with their descriptions and values. Used by the CL...                                     |
| [`isMissingBrainSchemaError()`](/packages/core/api/functions#ismissingbrainschemaerror)                            | function | Return true when the error is the "no such table: brain\_\*" SQLite error throw\...                                  |
| [`isAutoCaptureEnabled()`](/packages/core/api/functions#isautocaptureenabled)                                      | function | Return true when `brain.autoCapture` is enabled for the given project.  Resol...                                     |
| [`recordDecision()`](/packages/core/api/functions#recorddecision)                                                  | function | Record a decision to the audit trail. Appends a JSON line to...                                                      |
| [`getDecisionLog()`](/packages/core/api/functions#getdecisionlog)                                                  | function | Read the decision log, optionally filtered by sessionId and/or taskId.                                               |
| [`computeHandoff()`](/packages/core/api/functions#computehandoff)                                                  | function | Compute handoff data for a session. Gathers all session statistics and auto-c...                                     |
| [`persistHandoff()`](/packages/core/api/functions#persisthandoff)                                                  | function | Persist handoff data to a session.                                                                                   |
| [`getHandoff()`](/packages/core/api/functions#gethandoff)                                                          | function | Get handoff data for a session.                                                                                      |
| [`getLastHandoff()`](/packages/core/api/functions#getlasthandoff)                                                  | function | Get handoff data for the most recent ended session. Filters by scope if provi...                                     |
| [`computeDebrief()`](/packages/core/api/functions#computedebrief)                                                  | function | Compute rich debrief data for a session. Builds on computeHandoff() and adds...                                      |
| [`BrainDataAccessor`](/packages/core/api/functions#braindataaccessor)                                              | class    |                                                                                                                      |
| [`getBrainAccessor()`](/packages/core/api/functions#getbrainaccessor)                                              | function | Factory: get a BrainDataAccessor backed by the brain.db singleton.                                                   |
| [`typedAll()`](/packages/core/api/functions#typedall)                                                              | function | Type-safe wrapper for `StatementSync.all` — centralizes the `as unknown as` c...                                     |
| [`typedGet()`](/packages/core/api/functions#typedget)                                                              | function | Type-safe wrapper for `StatementSync.get` — centralizes the `as unknown as` c...                                     |
| [`LocalEmbeddingProvider`](/packages/core/api/functions#localembeddingprovider)                                    | class    | Local embedding provider backed by xenova/transformers.  Produces 384-dimensi...                                     |
| [`getLocalEmbeddingProvider()`](/packages/core/api/functions#getlocalembeddingprovider)                            | function | Get or create the shared LocalEmbeddingProvider singleton.                                                           |
| [`setEmbeddingProvider()`](/packages/core/api/functions#setembeddingprovider)                                      | function | Register an embedding provider for the brain system. Validates that the provi...                                     |
| [`getEmbeddingProvider()`](/packages/core/api/functions#getembeddingprovider)                                      | function | Get the currently registered embedding provider, or null.                                                            |
| [`clearEmbeddingProvider()`](/packages/core/api/functions#clearembeddingprovider)                                  | function | Clear the current embedding provider (useful for testing).                                                           |
| [`embedText()`](/packages/core/api/functions#embedtext)                                                            | function | Embed text into a float vector using the registered provider. Returns null wh...                                     |
| [`isEmbeddingAvailable()`](/packages/core/api/functions#isembeddingavailable)                                      | function | Check whether embedding is currently available.                                                                      |
| [`initDefaultProvider()`](/packages/core/api/functions#initdefaultprovider)                                        | function | Initialize the default local embedding provider.  Loads the LocalEmbeddingPro...                                     |
| [`searchSimilar()`](/packages/core/api/functions#searchsimilar)                                                    | function | Search for entries similar to a query string using vector similarity.  1. Emb...                                     |
| [`ensureFts5Tables()`](/packages/core/api/functions#ensurefts5tables)                                              | function | Create FTS5 virtual tables and content-sync triggers if they don't exist.  Us...                                     |
| [`rebuildFts5Index()`](/packages/core/api/functions#rebuildfts5index)                                              | function | Rebuild FTS5 indexes from the content tables. Useful after bulk inserts that...                                      |
| [`searchBrain()`](/packages/core/api/functions#searchbrain)                                                        | function | Unified search across all BRAIN memory tables.  Uses FTS5 MATCH for full-text...                                     |
| [`resetFts5Cache()`](/packages/core/api/functions#resetfts5cache)                                                  | function | Reset the cached FTS5 availability flag. Used in tests to force re-detection.                                        |
| [`hybridSearch()`](/packages/core/api/functions#hybridsearch)                                                      | function | Hybrid search across FTS5, vector similarity, and graph neighbors.  1. Runs F...                                     |
| [`generateMemoryBridgeContent()`](/packages/core/api/functions#generatememorybridgecontent)                        | function | Generate memory bridge content from brain.db. Returns the markdown string (do...                                     |
| [`writeMemoryBridge()`](/packages/core/api/functions#writememorybridge)                                            | function | Write memory bridge content to .cleo/memory-bridge.md.                                                               |
| [`refreshMemoryBridge()`](/packages/core/api/functions#refreshmemorybridge)                                        | function | Best-effort refresh: call from session.end, tasks.complete, or memory.observe...                                     |
| [`generateContextAwareContent()`](/packages/core/api/functions#generatecontextawarecontent)                        | function | Generate context-aware memory bridge content and write to disk.  When...                                             |
| [`maybeRefreshMemoryBridge()`](/packages/core/api/functions#mayberefreshmemorybridge)                              | function | Refresh the memory bridge if autoRefresh is enabled and the debounce window h...                                     |
| [`searchBrainCompact()`](/packages/core/api/functions#searchbraincompact)                                          | function | Token-efficient compact search across BRAIN tables. Returns index-level hits...                                      |
| [`timelineBrain()`](/packages/core/api/functions#timelinebrain)                                                    | function | Get chronological context around an anchor entry. Fetches the anchor's full d...                                     |
| [`fetchBrainEntries()`](/packages/core/api/functions#fetchbrainentries)                                            | function | Batch-fetch full details by IDs. Groups IDs by prefix to query the correct ta...                                     |
| [`observeBrain()`](/packages/core/api/functions#observebrain)                                                      | function | Save an observation to the BRAIN observations table. Replaces the external cl...                                     |
| [`populateEmbeddings()`](/packages/core/api/functions#populateembeddings)                                          | function | Backfill embeddings for existing observations that lack them.  Iterates throu...                                     |
| [`queryAudit()`](/packages/core/api/functions#queryaudit)                                                          | function | Query audit entries from SQLite audit\_log table. Used by session-grade.ts for...                                    |
| [`storeLearning()`](/packages/core/api/functions#storelearning)                                                    | function | Store a new learning.  T4769, T5241                                                                                  |
| [`searchLearnings()`](/packages/core/api/functions#searchlearnings)                                                | function | Search learnings by criteria. Results sorted by confidence (highest first)....                                       |
| [`learningStats()`](/packages/core/api/functions#learningstats)                                                    | function | Get learning statistics.  T4769, T5241                                                                               |
| [`gradeSession()`](/packages/core/api/functions#gradesession)                                                      | function | Grade a session by sessionId using the 5-dimension behavioral rubric.                                                |
| [`readGrades()`](/packages/core/api/functions#readgrades)                                                          | function | Read past grade results from .cleo/metrics/GRADES.jsonl                                                              |
| [`isValidAdapter()`](/packages/core/api/functions#isvalidadapter)                                                  | function | Validate that a loaded module export implements the CLEOProviderAdapter inter...                                     |
| [`loadAdapterFromManifest()`](/packages/core/api/functions#loadadapterfrommanifest)                                | function | Dynamically load and instantiate an adapter from its manifest.  Uses the mani...                                     |
| [`discoverAdapterManifests()`](/packages/core/api/functions#discoveradaptermanifests)                              | function | Scan the packages/adapters/ directory for adapter packages. Each adapter must...                                     |
| [`detectProvider()`](/packages/core/api/functions#detectprovider)                                                  | function | Detect whether a provider is active in the current environment by checking it...                                     |
| [`AdapterManager`](/packages/core/api/functions#adaptermanager)                                                    | class    | Central adapter manager. Singleton per process.  Lifecycle:   1. discover() —...                                     |
| [`bridgeSessionToMemory()`](/packages/core/api/functions#bridgesessiontomemory)                                    | function | Bridge session end data to brain.db as an observation.  Builds a summary text...                                     |
| [`storeDecision()`](/packages/core/api/functions#storedecision)                                                    | function | Store a new decision or update an existing one if a duplicate is found. Dupli...                                     |
| [`recallDecision()`](/packages/core/api/functions#recalldecision)                                                  | function | Recall a specific decision by ID.   T5155                                                                            |
| [`searchDecisions()`](/packages/core/api/functions#searchdecisions)                                                | function | Search decisions by type, confidence, outcome, and/or free-text query. Query...                                      |
| [`listDecisions()`](/packages/core/api/functions#listdecisions)                                                    | function | List decisions with pagination.   T5155                                                                              |
| [`updateDecisionOutcome()`](/packages/core/api/functions#updatedecisionoutcome)                                    | function | Update the outcome of a decision after learning from results.   T5155                                                |
| [`storePattern()`](/packages/core/api/functions#storepattern)                                                      | function | Store a new pattern. If a similar pattern already exists (same type + matchin...                                     |
| [`searchPatterns()`](/packages/core/api/functions#searchpatterns)                                                  | function | Search patterns by criteria.  T4768, T5241                                                                           |
| [`patternStats()`](/packages/core/api/functions#patternstats)                                                      | function | Get pattern statistics.  T4768, T5241                                                                                |
| [`extractTaskCompletionMemory()`](/packages/core/api/functions#extracttaskcompletionmemory)                        | function | Extract and store memory entries when a task is completed.  - Always stores a...                                     |
| [`extractSessionEndMemory()`](/packages/core/api/functions#extractsessionendmemory)                                | function | Extract and store memory entries when a session ends.  - Stores a process dec...                                     |
| [`resolveTaskDetails()`](/packages/core/api/functions#resolvetaskdetails)                                          | function | Resolve an array of task IDs to their full Task objects. Tasks that cannot be...                                     |
| [`extractFromTranscript()`](/packages/core/api/functions#extractfromtranscript)                                    | function | Extract key observations from a provider session transcript and store them in...                                     |
| [`handleSessionStart()`](/packages/core/api/functions#handlesessionstart)                                          | function | Handle SessionStart - capture initial session context  T138: Refresh memory b...                                     |
| [`handleSessionEnd()`](/packages/core/api/functions#handlesessionend)                                              | function | Handle SessionEnd - capture session summary  T138: Refresh memory bridge afte...                                     |
| [`handleToolStart()`](/packages/core/api/functions#handletoolstart)                                                | function | Handle PreToolUse (maps to task.start in CLEO, canonical: was onToolStart)                                           |
| [`handleToolComplete()`](/packages/core/api/functions#handletoolcomplete)                                          | function | Handle PostToolUse (maps to task.complete in CLEO, canonical: was onToolCompl...                                     |
| [`handleError()`](/packages/core/api/functions#handleerror)                                                        | function | Handle PostToolUseFailure — capture operation errors to BRAIN.  Includes an i...                                     |
| [`handleFileChange()`](/packages/core/api/functions#handlefilechange)                                              | function | Handle Notification (file-change variant) - capture file changes to BRAIN  Ga...                                     |
| [`handleSystemNotification()`](/packages/core/api/functions#handlesystemnotification)                              | function | Handle Notification — capture system notifications as BRAIN observations.  On...                                     |
| [`handleWorkPromptSubmit()`](/packages/core/api/functions#handleworkpromptsubmit)                                  | function | Handle PromptSubmit — log incoming mutation intents to BRAIN.  Only fires for...                                     |
| [`handleWorkResponseComplete()`](/packages/core/api/functions#handleworkresponsecomplete)                          | function | Handle ResponseComplete — capture completed mutations to BRAIN.  Only fires f...                                     |
| [`handleSubagentStart()`](/packages/core/api/functions#handlesubagentstart)                                        | function | Handle SubagentStart — log subagent spawn as a BRAIN observation.  Records th...                                     |
| [`handleSubagentStop()`](/packages/core/api/functions#handlesubagentstop)                                          | function | Handle SubagentStop — log subagent completion result as a BRAIN observation....                                      |
| [`handlePreCompact()`](/packages/core/api/functions#handleprecompact)                                              | function | Handle PreCompact — snapshot current session memory context to BRAIN.  Fires...                                      |
| [`handlePostCompact()`](/packages/core/api/functions#handlepostcompact)                                            | function | Handle PostCompact — record compaction completion to BRAIN.  Fires immediatel...                                     |
| [`recordAssumption()`](/packages/core/api/functions#recordassumption)                                              | function | Record an assumption made during a session. Appends to .cleo/audit/assumption...                                     |
| [`linkMemoryToTask()`](/packages/core/api/functions#linkmemorytotask)                                              | function | Link a memory entry to a task.   T5156                                                                               |
| [`unlinkMemoryFromTask()`](/packages/core/api/functions#unlinkmemoryfromtask)                                      | function | Remove a link between a memory entry and a task.   T5156                                                             |
| [`getTaskLinks()`](/packages/core/api/functions#gettasklinks)                                                      | function | Get all memory entries linked to a specific task.   T5156                                                            |
| [`getMemoryLinks()`](/packages/core/api/functions#getmemorylinks)                                                  | function | Get all tasks linked to a specific memory entry.   T5156                                                             |
| [`bulkLink()`](/packages/core/api/functions#bulklink)                                                              | function | Batch create multiple links at once.   T5156                                                                         |
| [`getLinkedDecisions()`](/packages/core/api/functions#getlinkeddecisions)                                          | function | Get all decisions linked to a task. Convenience method that fetches full deci...                                     |
| [`getLinkedPatterns()`](/packages/core/api/functions#getlinkedpatterns)                                            | function | Get all patterns linked to a task. Convenience method that fetches full patte...                                     |
| [`getLinkedLearnings()`](/packages/core/api/functions#getlinkedlearnings)                                          | function | Get all learnings linked to a task. Convenience method that fetches full lear...                                     |
| [`extractMemoryItems()`](/packages/core/api/functions#extractmemoryitems)                                          | function | Extract memory-worthy items from debrief data. Pure function -- no side effec...                                     |
| [`persistSessionMemory()`](/packages/core/api/functions#persistsessionmemory)                                      | function | Main entry point -- called from session.end handler. Extracts memory-worthy c...                                     |
| [`buildSummarizationPrompt()`](/packages/core/api/functions#buildsummarizationprompt)                              | function | Build a summarization prompt from debrief data.  Returns a formatted prompt s...                                     |
| [`ingestStructuredSummary()`](/packages/core/api/functions#ingeststructuredsummary)                                | function | Ingest a structured session summary directly into brain.db.  Stores each fiel...                                     |
| [`getSessionMemoryContext()`](/packages/core/api/functions#getsessionmemorycontext)                                | function | Retrieve session memory for a given scope. Used by briefing/handoff to enrich...                                     |
| [`depsReady()`](/packages/core/api/functions#depsready)                                                            | function | Check if all dependencies of a task are satisfied.                                                                   |
| [`initializePipeline()`](/packages/core/api/functions#initializepipeline)                                          | function | Initialize a new pipeline for a task.  Creates a new pipeline record in the d...                                     |
| [`getPipeline()`](/packages/core/api/functions#getpipeline)                                                        | function | Retrieve a pipeline by task ID.  Returns the complete pipeline state includin...                                     |
| [`advanceStage()`](/packages/core/api/functions#advancestage)                                                      | function | Advance a pipeline to the next stage.  Performs atomic stage transition with...                                      |
| [`getCurrentStage()`](/packages/core/api/functions#getcurrentstage)                                                | function | Get the current stage of a pipeline.  Convenience method to quickly check whi...                                     |
| [`listPipelines()`](/packages/core/api/functions#listpipelines)                                                    | function | List pipelines with optional filtering.                                                                              |
| [`completePipeline()`](/packages/core/api/functions#completepipeline)                                              | function | Complete a pipeline (mark all stages done).  Marks the pipeline as completed...                                      |
| [`cancelPipeline()`](/packages/core/api/functions#cancelpipeline)                                                  | function | Cancel a pipeline before completion.  Marks the pipeline as cancelled (user-i...                                     |
| [`pipelineExists()`](/packages/core/api/functions#pipelineexists)                                                  | function | Check if a pipeline exists for a task.                                                                               |
| [`getPipelineStatistics()`](/packages/core/api/functions#getpipelinestatistics)                                    | function | Get pipeline statistics.  Returns aggregate counts of pipelines by status and...                                     |
| [`getPipelineStages()`](/packages/core/api/functions#getpipelinestages)                                            | function | Get all stages for a pipeline.                                                                                       |
| [`computeBriefing()`](/packages/core/api/functions#computebriefing)                                                | function | Compute the complete session briefing. Aggregates data from all 6+ sources.                                          |
| [`findSessions()`](/packages/core/api/functions#findsessions)                                                      | function | Find sessions with minimal field projection.  Loads all sessions, applies fil...                                     |
| [`archiveSessions()`](/packages/core/api/functions#archivesessions)                                                | function | Archive old/ended sessions. Identifies ended and suspended sessions older tha...                                     |
| [`cleanupSessions()`](/packages/core/api/functions#cleanupsessions)                                                | function | Remove orphaned sessions, auto-end stale active sessions, and clean up stale...                                      |
| [`getContextDrift()`](/packages/core/api/functions#getcontextdrift)                                                | function | Compute context drift score for the current session. Compares session progres...                                     |
| [`getSessionHistory()`](/packages/core/api/functions#getsessionhistory)                                            | function | List session history with focus changes and completed tasks. If sessionId is...                                      |
| [`showSession()`](/packages/core/api/functions#showsession)                                                        | function | Show a specific session. Looks in active sessions first, then session history...                                     |
| [`getSessionStats()`](/packages/core/api/functions#getsessionstats)                                                | function | Compute session statistics, optionally for a specific session. Throws CleoErr...                                     |
| [`suspendSession()`](/packages/core/api/functions#suspendsession)                                                  | function | Suspend an active session. Sets status to 'suspended' and records the reason....                                     |
| [`switchSession()`](/packages/core/api/functions#switchsession)                                                    | function | Switch to a different session. Suspends the current active session and activa...                                     |
| [`SessionView`](/packages/core/api/functions#sessionview)                                                          | class    |                                                                                                                      |
| [`selectRuntimeProviderContext()`](/packages/core/api/functions#selectruntimeprovidercontext)                      | function |                                                                                                                      |
| [`detectRuntimeProviderContext()`](/packages/core/api/functions#detectruntimeprovidercontext)                      | function |                                                                                                                      |
| [`resetRuntimeProviderContextCache()`](/packages/core/api/functions#resetruntimeprovidercontextcache)              | function |                                                                                                                      |
| [`parseScope()`](/packages/core/api/functions#parsescope)                                                          | function | Parse a scope string into a SessionScope.  T4463                                                                     |
| [`readSessions()`](/packages/core/api/functions#readsessions)                                                      | function | Read sessions from accessor or JSON file.  T4463                                                                     |
| [`saveSessions()`](/packages/core/api/functions#savesessions)                                                      | function | Save sessions via accessor or JSON file.  T4463                                                                      |
| [`startSession()`](/packages/core/api/functions#startsession)                                                      | function | Start a new session.  T4463                                                                                          |
| [`endSession()`](/packages/core/api/functions#endsession)                                                          | function | End a session.  T4463                                                                                                |
| [`sessionStatus()`](/packages/core/api/functions#sessionstatus)                                                    | function | Get current session status.  T4463                                                                                   |
| [`resumeSession()`](/packages/core/api/functions#resumesession)                                                    | function | Resume an existing session.  T4463                                                                                   |
| [`listSessions()`](/packages/core/api/functions#listsessions)                                                      | function | List sessions with optional filtering.  T4463                                                                        |
| [`gcSessions()`](/packages/core/api/functions#gcsessions)                                                          | function | Garbage collect old sessions. Marks orphaned sessions that have been active t...                                     |
| [`getEnforcementMode()`](/packages/core/api/functions#getenforcementmode)                                          | function | Get the current enforcement mode.                                                                                    |
| [`isSessionEnforcementEnabled()`](/packages/core/api/functions#issessionenforcementenabled)                        | function | Check if session enforcement is enabled.                                                                             |
| [`getActiveSessionInfo()`](/packages/core/api/functions#getactivesessioninfo)                                      | function | Get active session info. Returns null if no active session.                                                          |
| [`requireActiveSession()`](/packages/core/api/functions#requireactivesession)                                      | function | Require an active session for write operations. In strict mode, throws if no...                                      |
| [`validateTaskInScope()`](/packages/core/api/functions#validatetaskinscope)                                        | function | Validate that a task is within the current session's scope. Only enforced whe...                                     |
| [`createAcceptanceEnforcement()`](/packages/core/api/functions#createacceptanceenforcement)                        | function |                                                                                                                      |
| [`isValidPipelineStage()`](/packages/core/api/functions#isvalidpipelinestage)                                      | function | Check whether a string is a valid pipeline stage name.                                                               |
| [`validatePipelineStage()`](/packages/core/api/functions#validatepipelinestage)                                    | function | Validate a pipeline stage name and throw a CleoError on failure.                                                     |
| [`resolveDefaultPipelineStage()`](/packages/core/api/functions#resolvedefaultpipelinestage)                        | function | Determine the default pipeline stage for a new task.  Rules (in priority orde...                                     |
| [`getPipelineStageOrder()`](/packages/core/api/functions#getpipelinestageorder)                                    | function | Get the numeric order of a pipeline stage (1-based).                                                                 |
| [`isPipelineTransitionForward()`](/packages/core/api/functions#ispipelinetransitionforward)                        | function | Check whether transitioning from `currentStage` to `newStage` is forward-only...                                     |
| [`validatePipelineTransition()`](/packages/core/api/functions#validatepipelinetransition)                          | function | Validate a pipeline stage transition and throw if it would move backward.                                            |
| [`getLifecycleMode()`](/packages/core/api/functions#getlifecyclemode)                                              | function | Read `lifecycle.mode` from config.  Falls back to "strict" when unset (matche...                                     |
| [`validateEpicCreation()`](/packages/core/api/functions#validateepiccreation)                                      | function | Validate that a new epic satisfies creation requirements.  In **strict** mode...                                     |
| [`validateChildStageCeiling()`](/packages/core/api/functions#validatechildstageceiling)                            | function | Validate that a child task's pipeline stage does not exceed its epic's stage....                                     |
| [`findEpicAncestor()`](/packages/core/api/functions#findepicancestor)                                              | function | Find the nearest epic ancestor for a given task.  Walks the ancestor chain (r...                                     |
| [`validateEpicStageAdvancement()`](/packages/core/api/functions#validateepicstageadvancement)                      | function | Validate that an epic can advance its pipeline stage.  An epic is **blocked**...                                     |
| [`buildDefaultVerification()`](/packages/core/api/functions#builddefaultverification)                              | function | Build the default verification metadata applied to every new task. Gates are...                                      |
| [`validateTitle()`](/packages/core/api/functions#validatetitle)                                                    | function | Validate a task title.  T4460                                                                                        |
| [`validateStatus()`](/packages/core/api/functions#validatestatus)                                                  | function | Validate task status.  T4460                                                                                         |
| [`normalizePriority()`](/packages/core/api/functions#normalizepriority)                                            | function | Normalize priority to canonical string format. Accepts both string names ("cr...                                     |
| [`validatePriority()`](/packages/core/api/functions#validatepriority)                                              | function | Validate task priority.  T4460  T4572                                                                                |
| [`validateTaskType()`](/packages/core/api/functions#validatetasktype)                                              | function | Validate task type.  T4460                                                                                           |
| [`validateSize()`](/packages/core/api/functions#validatesize)                                                      | function | Validate task size.  T4460                                                                                           |
| [`validateLabels()`](/packages/core/api/functions#validatelabels)                                                  | function | Validate label format.  T4460                                                                                        |
| [`validatePhaseFormat()`](/packages/core/api/functions#validatephaseformat)                                        | function | Validate phase slug format.  T4460                                                                                   |
| [`validateDepends()`](/packages/core/api/functions#validatedepends)                                                | function | Validate dependency IDs exist.  T4460                                                                                |
| [`validateParent()`](/packages/core/api/functions#validateparent)                                                  | function | Validate parent hierarchy constraints.  T4460                                                                        |
| [`getTaskDepth()`](/packages/core/api/functions#gettaskdepth)                                                      | function | Get the depth of a task in the hierarchy.  T4460                                                                     |
| [`inferTaskType()`](/packages/core/api/functions#infertasktype)                                                    | function | Infer task type from parent context.  T4460                                                                          |
| [`getNextPosition()`](/packages/core/api/functions#getnextposition)                                                | function | Get the next position for a task within a parent scope.  T4460                                                       |
| [`logOperation()`](/packages/core/api/functions#logoperation)                                                      | function | Log an operation to the audit log.  T4460                                                                            |
| [`findRecentDuplicate()`](/packages/core/api/functions#findrecentduplicate)                                        | function | Check for recent duplicate task.  T4460                                                                              |
| [`addTask()`](/packages/core/api/functions#addtask)                                                                | function | Add a new task to the todo file.  T4460                                                                              |
| [`listPhases()`](/packages/core/api/functions#listphases)                                                          | function | List all phases with status summaries.  T4464                                                                        |
| [`showPhase()`](/packages/core/api/functions#showphase)                                                            | function | Show the current phase details.  T4464                                                                               |
| [`setPhase()`](/packages/core/api/functions#setphase)                                                              | function | Set the current project phase.  T4464                                                                                |
| [`startPhase()`](/packages/core/api/functions#startphase)                                                          | function | Start a phase (pending - active).  T4464                                                                             |
| [`completePhase()`](/packages/core/api/functions#completephase)                                                    | function | Complete a phase (active - completed).  T4464                                                                        |
| [`advancePhase()`](/packages/core/api/functions#advancephase)                                                      | function | Advance to the next phase.  T4464                                                                                    |
| [`renamePhase()`](/packages/core/api/functions#renamephase)                                                        | function | Rename a phase and update all task references.  T4464                                                                |
| [`deletePhase()`](/packages/core/api/functions#deletephase)                                                        | function | Delete a phase with optional task reassignment.  T4464                                                               |
| [`pruneAuditLog()`](/packages/core/api/functions#pruneauditlog)                                                    | function | Prune old audit\_log rows from tasks.db.  1. If auditRetentionDays is 0 or und...                                    |
| [`generateProjectHash()`](/packages/core/api/functions#generateprojecthash)                                        | function | Canonical project identity hash. SHA-256 of absolute path, first 12 hex chars...                                     |
| [`validateAgainstSchema()`](/packages/core/api/functions#validateagainstschema)                                    | function | Validate data against a JSON Schema object. Throws CleoError on validation fa...                                     |
| [`validateAgainstSchemaFile()`](/packages/core/api/functions#validateagainstschemafile)                            | function | Load a JSON Schema file and validate data against it.                                                                |
| [`checkSchema()`](/packages/core/api/functions#checkschema)                                                        | function | Check if data is valid against a schema without throwing. Returns an array of...                                     |
| [`resolveSchemaPath()`](/packages/core/api/functions#resolveschemapath)                                            | function | Resolve the absolute path to a schema file at runtime.  Priority:   1. Global...                                     |
| [`getSchemaVersion()`](/packages/core/api/functions#getschemaversion)                                              | function | Read the schema version from a resolved schema file.  Checks `schemaVersion`...                                      |
| [`ensureGlobalSchemas()`](/packages/core/api/functions#ensureglobalschemas)                                        | function | Copy ALL bundled schemas from package schemas/ to \~/.cleo/schemas/.  - Create...                                    |
| [`checkGlobalSchemas()`](/packages/core/api/functions#checkglobalschemas)                                          | function | Verify that global schemas are installed and not stale.                                                              |
| [`checkSchemaStaleness()`](/packages/core/api/functions#checkschemastaleness)                                      | function | Compare global schema versions against bundled package versions.                                                     |
| [`listInstalledSchemas()`](/packages/core/api/functions#listinstalledschemas)                                      | function | List all schemas installed in \~/.cleo/schemas/.                                                                     |
| [`cleanProjectSchemas()`](/packages/core/api/functions#cleanprojectschemas)                                        | function | Backup and remove deprecated .cleo/schemas/ directory from a project.  Schema...                                     |
| [`readSchemaVersionFromFile()`](/packages/core/api/functions#readschemaversionfromfile)                            | function | Read the top-level `schemaVersion` field from a schema file. Delegates to the...                                     |
| [`checkSchemaIntegrity()`](/packages/core/api/functions#checkschemaintegrity)                                      | function | Check integrity of all active JSON files in a CLEO project.                                                          |
| [`detectProjectType()`](/packages/core/api/functions#detectprojecttype)                                            | function | Detect project type from directory contents. Returns a schema-compliant Proje...                                     |
| [`getInjectionTemplateContent()`](/packages/core/api/functions#getinjectiontemplatecontent)                        | function | Get the CLEO-INJECTION.md template content from the package templates/ direct...                                     |
| [`ensureInjection()`](/packages/core/api/functions#ensureinjection)                                                | function | Full injection refresh: strip legacy blocks, inject CAAMP content, install gl...                                     |
| [`buildContributorInjectionBlock()`](/packages/core/api/functions#buildcontributorinjectionblock)                  | function | Build a smart, contextual contributor block for AGENTS.md injection. Returns...                                      |
| [`checkInjection()`](/packages/core/api/functions#checkinjection)                                                  | function | Verify injection health: AGENTS.md exists, has CAAMP markers, markers are bal...                                     |
| [`fileExists()`](/packages/core/api/functions#fileexists)                                                          | function | Check if a file exists and is readable.                                                                              |
| [`stripCLEOBlocks()`](/packages/core/api/functions#stripcleoblocks)                                                | function | Strip legacy CLEO:START/CLEO:END blocks from a file. Called before CAAMP inje...                                     |
| [`removeCleoFromRootGitignore()`](/packages/core/api/functions#removecleofromrootgitignore)                        | function | Remove .cleo/ or .cleo entries from the project root .gitignore.                                                     |
| [`getPackageRoot()`](/packages/core/api/functions#getpackageroot)                                                  | function | Resolve the package root directory (where schemas/ and templates/ live). scaf...                                     |
| [`getGitignoreContent()`](/packages/core/api/functions#getgitignorecontent)                                        | function | Load the gitignore template from the package's templates/ directory. Falls ba...                                     |
| [`getCleoVersion()`](/packages/core/api/functions#getcleoversion)                                                  | function | Read CLEO version from package.json.                                                                                 |
| [`createDefaultConfig()`](/packages/core/api/functions#createdefaultconfig)                                        | function | Create default config.json content.                                                                                  |
| [`ensureCleoStructure()`](/packages/core/api/functions#ensurecleostructure)                                        | function | Create .cleo/ directory and all required subdirectories. Idempotent: skips di...                                     |
| [`ensureGitignore()`](/packages/core/api/functions#ensuregitignore)                                                | function | Create or repair .cleo/.gitignore from template. Idempotent: skips if file al...                                     |
| [`ensureConfig()`](/packages/core/api/functions#ensureconfig)                                                      | function | Create default config.json if missing. Idempotent: skips if file already exists.                                     |
| [`ensureProjectInfo()`](/packages/core/api/functions#ensureprojectinfo)                                            | function | Create or refresh project-info.json. Idempotent: skips if file already exists...                                     |
| [`ensureContributorMcp()`](/packages/core/api/functions#ensurecontributormcp)                                      | function | No-op. Kept for API compatibility.                                                                                   |
| [`ensureProjectContext()`](/packages/core/api/functions#ensureprojectcontext)                                      | function | Detect and write project-context.json. Idempotent: skips if file exists and i...                                     |
| [`ensureCleoGitRepo()`](/packages/core/api/functions#ensurecleogitrepo)                                            | function | Initialize isolated .cleo/.git checkpoint repository. Idempotent: skips if .c...                                     |
| [`ensureSqliteDb()`](/packages/core/api/functions#ensuresqlitedb)                                                  | function | Create SQLite database if missing. Idempotent: skips if tasks.db already exists.                                     |
| [`checkCleoStructure()`](/packages/core/api/functions#checkcleostructure)                                          | function | Verify all required .cleo/ subdirectories exist.                                                                     |
| [`checkGitignore()`](/packages/core/api/functions#checkgitignore)                                                  | function | Verify .cleo/.gitignore exists and matches template.                                                                 |
| [`checkConfig()`](/packages/core/api/functions#checkconfig)                                                        | function | Verify config.json exists and is valid JSON.                                                                         |
| [`checkProjectInfo()`](/packages/core/api/functions#checkprojectinfo)                                              | function | Verify project-info.json exists with required fields.                                                                |
| [`checkProjectContext()`](/packages/core/api/functions#checkprojectcontext)                                        | function | Verify project-context.json exists and is not stale (default: 30 days).                                              |
| [`checkCleoGitRepo()`](/packages/core/api/functions#checkcleogitrepo)                                              | function | Verify .cleo/.git checkpoint repository exists.                                                                      |
| [`checkSqliteDb()`](/packages/core/api/functions#checksqlitedb)                                                    | function | Verify .cleo/tasks.db exists and is non-empty.                                                                       |
| [`ensureBrainDb()`](/packages/core/api/functions#ensurebraindb)                                                    | function | Create brain.db if missing. Idempotent: skips if brain.db already exists.                                            |
| [`checkBrainDb()`](/packages/core/api/functions#checkbraindb)                                                      | function | Verify .cleo/brain.db exists and is non-empty.                                                                       |
| [`checkMemoryBridge()`](/packages/core/api/functions#checkmemorybridge)                                            | function | Verify .cleo/memory-bridge.md exists. Warning level if missing (not failure)...                                      |
| [`ensureGlobalHome()`](/packages/core/api/functions#ensureglobalhome)                                              | function | Ensure the global \~/.cleo/ home directory and its required subdirectories exi...                                    |
| [`ensureGlobalTemplates()`](/packages/core/api/functions#ensureglobaltemplates)                                    | function | Ensure the global CLEO injection template is installed. Delegates to injectio...                                     |
| [`ensureGlobalScaffold()`](/packages/core/api/functions#ensureglobalscaffold)                                      | function | Perform a complete global scaffold operation: ensure home and templates are a...                                     |
| [`ensureCleoOsHub()`](/packages/core/api/functions#ensurecleooshub)                                                | function | Ensure the CleoOS Hub subdirectories exist under the global CLEO home, and se...                                     |
| [`checkGlobalHome()`](/packages/core/api/functions#checkglobalhome)                                                | function | Check that the global \~/.cleo/ home and its required subdirectories exist. Re...                                    |
| [`checkGlobalTemplates()`](/packages/core/api/functions#checkglobaltemplates)                                      | function | Check that the global injection template is present and current. Read-only: n...                                     |
| [`checkLogDir()`](/packages/core/api/functions#checklogdir)                                                        | function | Check that the project log directory exists. Read-only: no side effects.                                             |
| [`classifyProject()`](/packages/core/api/functions#classifyproject)                                                | function | Classify a project directory as greenfield or brownfield.  Read-only — never...                                      |
| [`ensureGitHooks()`](/packages/core/api/functions#ensuregithooks)                                                  | function | Install or update managed git hooks from templates/git-hooks/ into .git/hooks...                                     |
| [`checkGitHooks()`](/packages/core/api/functions#checkgithooks)                                                    | function | Verify managed hooks are installed and current.  Compares installed hooks in...                                      |
| [`detectLegacyAgentOutputs()`](/packages/core/api/functions#detectlegacyagentoutputs)                              | function | Detect legacy agent-output directories in a project.  Read-only check — never...                                     |
| [`migrateAgentOutputs()`](/packages/core/api/functions#migrateagentoutputs)                                        | function | Run the full agent-outputs migration.  Copies files from all legacy locations...                                     |
| [`migrateJsonToSqlite()`](/packages/core/api/functions#migratejsontosqlite)                                        | function | Migrate projects from legacy JSON registry to nexus.db.  For each project ent...                                     |
| [`getNexusHome()`](/packages/core/api/functions#getnexushome)                                                      | function | Get path to the NEXUS home directory (cache, etc.).                                                                  |
| [`getNexusCacheDir()`](/packages/core/api/functions#getnexuscachedir)                                              | function | Get path to the NEXUS cache directory.                                                                               |
| [`getRegistryPath()`](/packages/core/api/functions#getregistrypath)                                                | function | Get path to the legacy projects registry JSON file.                                                                  |
| [`readRegistry()`](/packages/core/api/functions#readregistry)                                                      | function | Read all projects from nexus.db and return as a NexusRegistryFile. Compatibil...                                     |
| [`readRegistryRequired()`](/packages/core/api/functions#readregistryrequired)                                      | function | Read the global registry, throwing if not initialized.                                                               |
| [`nexusInit()`](/packages/core/api/functions#nexusinit)                                                            | function | Initialize the NEXUS directory structure and nexus.db. Idempotent -- safe to...                                      |
| [`nexusRegister()`](/packages/core/api/functions#nexusregister)                                                    | function | Register a project in the global registry (nexus.db).                                                                |
| [`nexusUnregister()`](/packages/core/api/functions#nexusunregister)                                                | function | Unregister a project from the global registry.                                                                       |
| [`nexusList()`](/packages/core/api/functions#nexuslist)                                                            | function | List all registered projects.                                                                                        |
| [`nexusGetProject()`](/packages/core/api/functions#nexusgetproject)                                                | function | Get a project by name or hash. Returns null if not found.                                                            |
| [`nexusProjectExists()`](/packages/core/api/functions#nexusprojectexists)                                          | function | Check if a project exists in the registry.                                                                           |
| [`nexusSync()`](/packages/core/api/functions#nexussync)                                                            | function | Sync project metadata (task count, labels) for a registered project.                                                 |
| [`nexusSyncAll()`](/packages/core/api/functions#nexussyncall)                                                      | function | Sync all registered projects.                                                                                        |
| [`nexusSetPermission()`](/packages/core/api/functions#nexussetpermission)                                          | function | Update a project's permission level in the registry. Used by permissions.ts t...                                     |
| [`nexusReconcile()`](/packages/core/api/functions#nexusreconcile)                                                  | function | Reconcile the current project's identity with the global nexus registry.  4-s...                                     |
| [`analyzeStack()`](/packages/core/api/functions#analyzestack)                                                      | function |                                                                                                                      |
| [`analyzeArchitecture()`](/packages/core/api/functions#analyzearchitecture)                                        | function |                                                                                                                      |
| [`analyzeStructure()`](/packages/core/api/functions#analyzestructure)                                              | function |                                                                                                                      |
| [`analyzeConventions()`](/packages/core/api/functions#analyzeconventions)                                          | function |                                                                                                                      |
| [`analyzeTesting()`](/packages/core/api/functions#analyzetesting)                                                  | function |                                                                                                                      |
| [`analyzeIntegrations()`](/packages/core/api/functions#analyzeintegrations)                                        | function |                                                                                                                      |
| [`analyzeConcerns()`](/packages/core/api/functions#analyzeconcerns)                                                | function |                                                                                                                      |
| [`storeMapToBrain()`](/packages/core/api/functions#storemaptobrain)                                                | function |                                                                                                                      |
| [`mapCodebase()`](/packages/core/api/functions#mapcodebase)                                                        | function |                                                                                                                      |
| [`initAgentDefinition()`](/packages/core/api/functions#initagentdefinition)                                        | function | Install cleo-subagent agent definition to \~/.agents/agents/.  T4685                                                 |
| [`initMcpServer()`](/packages/core/api/functions#initmcpserver)                                                    | function | No-op. Kept for API compatibility.  T4706                                                                            |
| [`initCoreSkills()`](/packages/core/api/functions#initcoreskills)                                                  | function | Install CLEO core skills to the canonical skills directory via CAAMP.  T4707...                                      |
| [`initNexusRegistration()`](/packages/core/api/functions#initnexusregistration)                                    | function | Register/reconcile project with NEXUS. Uses nexusReconcile for idempotent han...                                     |
| [`installGitHubTemplates()`](/packages/core/api/functions#installgithubtemplates)                                  | function | Install GitHub issue and PR templates to .github/ if a git repo exists but .g...                                     |
| [`updateDocs()`](/packages/core/api/functions#updatedocs)                                                          | function | Run update-docs only: refresh all injections without reinitializing. Re-injec...                                     |
| [`initProject()`](/packages/core/api/functions#initproject)                                                        | function | Run full project initialization.  Creates the .cleo/ directory structure, ins...                                     |
| [`isAutoInitEnabled()`](/packages/core/api/functions#isautoinitenabled)                                            | function | Check if auto-init is enabled via environment variable.  T4789                                                       |
| [`ensureInitialized()`](/packages/core/api/functions#ensureinitialized)                                            | function | Check if a project is initialized and auto-init if configured. Returns  initi...                                     |
| [`getVersion()`](/packages/core/api/functions#getversion)                                                          | function | Get the current CLEO/project version. Checks VERSION file, then package.json....                                     |
| [`bootstrapGlobalCleo()`](/packages/core/api/functions#bootstrapglobalcleo)                                        | function | Bootstrap the global CLEO directory structure and install templates.  Creates...                                     |
| [`installMcpToProviders()`](/packages/core/api/functions#installmcptoproviders)                                    | function | No-op. Kept for API compatibility.                                                                                   |
| [`installSkillsGlobally()`](/packages/core/api/functions#installskillsglobally)                                    | function | Install CLEO core skills globally via CAAMP.                                                                         |
| [`bootstrapCaamp()`](/packages/core/api/functions#bootstrapcaamp)                                                  | function |                                                                                                                      |
| [`exportTasks()`](/packages/core/api/functions#exporttasks)                                                        | function | Export tasks to a portable format. Returns the formatted content and metadata.                                       |
| [`importTasks()`](/packages/core/api/functions#importtasks)                                                        | function | Import tasks from an export file.                                                                                    |
| [`recordAgentExecution()`](/packages/core/api/functions#recordagentexecution)                                      | function | Record an agent execution event to brain\_decisions.  Each event becomes a...                                        |
| [`_recordAgentExecutionWithAccessor()`](/packages/core/api/functions#recordagentexecutionwithaccessor)             | function | Internal implementation that accepts a pre-constructed accessor. Separated fo...                                     |
| [`getAgentPerformanceHistory()`](/packages/core/api/functions#getagentperformancehistory)                          | function | Retrieve agent execution performance history from brain\_decisions.  Queries a...                                    |
| [`_getAgentPerformanceHistoryWithAccessor()`](/packages/core/api/functions#getagentperformancehistorywithaccessor) | function | Internal implementation with injected accessor for testability.                                                      |
| [`recordFailurePattern()`](/packages/core/api/functions#recordfailurepattern)                                      | function | Record a task failure pattern to brain\_patterns.  When a task fails, the (age...                                    |
| [`_recordFailurePatternWithAccessor()`](/packages/core/api/functions#recordfailurepatternwithaccessor)             | function | Internal implementation with injected accessor.                                                                      |
| [`storeHealingStrategy()`](/packages/core/api/functions#storehealingstrategy)                                      | function | Store a healing strategy observation to brain\_observations.  When a failure p...                                    |
| [`_storeHealingStrategyWithAccessor()`](/packages/core/api/functions#storehealingstrategywithaccessor)             | function | Internal implementation with injected accessor.                                                                      |
| [`getSelfHealingSuggestions()`](/packages/core/api/functions#getselfhealingsuggestions)                            | function | Get self-healing suggestions for a given agent type and task type.  Queries b...                                     |
| [`_getSelfHealingSuggestionsWithAccessor()`](/packages/core/api/functions#getselfhealingsuggestionswithaccessor)   | function | Internal implementation with injected accessor.                                                                      |
| [`processAgentLifecycleEvent()`](/packages/core/api/functions#processagentlifecycleevent)                          | function | Full agent lifecycle event processor.  Convenience function that: 1. Records...                                      |
| [`getAgentCapacity()`](/packages/core/api/functions#getagentcapacity)                                              | function | Get task-count-based remaining capacity for an agent.  Remaining capacity =...                                       |
| [`getAgentsByCapacity()`](/packages/core/api/functions#getagentsbycapacity)                                        | function | List all non-terminal agents sorted by remaining task capacity (descending)....                                      |
| [`getAgentSpecializations()`](/packages/core/api/functions#getagentspecializations)                                | function | Get the specialization/skills list for an agent.  Specializations are stored...                                      |
| [`updateAgentSpecializations()`](/packages/core/api/functions#updateagentspecializations)                          | function | Update the specializations list stored in an agent's metadata.  Merges the ne...                                     |
| [`recordAgentPerformance()`](/packages/core/api/functions#recordagentperformance)                                  | function | Record agent performance metrics to the BRAIN execution history.  Translates...                                      |
| [`updateCapacity()`](/packages/core/api/functions#updatecapacity)                                                  | function | Update the capacity value for an agent instance.                                                                     |
| [`getAvailableCapacity()`](/packages/core/api/functions#getavailablecapacity)                                      | function | Get the total available capacity across all active agents.  Only considers ag...                                     |
| [`findLeastLoadedAgent()`](/packages/core/api/functions#findleastloadedagent)                                      | function | Find the agent with the most available capacity.                                                                     |
| [`isOverloaded()`](/packages/core/api/functions#isoverloaded)                                                      | function | Check if the system is overloaded (total capacity below threshold).                                                  |
| [`getCapacitySummary()`](/packages/core/api/functions#getcapacitysummary)                                          | function | Get a capacity summary across the entire agent pool.                                                                 |
| [`recordHeartbeat()`](/packages/core/api/functions#recordheartbeat)                                                | function | Record a heartbeat for an agent instance.  Updates `last_heartbeat` to the cu...                                     |
| [`checkAgentHealth()`](/packages/core/api/functions#checkagenthealth)                                              | function | Check the health of a specific agent instance by ID.  Queries the agent's cur...                                     |
| [`detectStaleAgents()`](/packages/core/api/functions#detectstaleagents)                                            | function | Find all non-terminal agents whose last heartbeat is older than `thresholdMs`...                                     |
| [`detectCrashedAgents()`](/packages/core/api/functions#detectcrashedagents)                                        | function | Find agents with status `active` whose heartbeat has been silent for longer t...                                     |
| [`createRetryPolicy()`](/packages/core/api/functions#createretrypolicy)                                            | function | Create a retry policy by merging overrides with the default policy.                                                  |
| [`calculateDelay()`](/packages/core/api/functions#calculatedelay)                                                  | function | Calculate the delay for a given retry attempt using exponential backoff.                                             |
| [`shouldRetry()`](/packages/core/api/functions#shouldretry)                                                        | function | Determine whether an error should be retried based on its classification and...                                      |
| [`withRetry()`](/packages/core/api/functions#withretry)                                                            | function | Wrap an async function with retry logic using configurable exponential backoff.                                      |
| [`recoverCrashedAgents()`](/packages/core/api/functions#recovercrashedagents)                                      | function | Attempt to recover crashed agents.  Finds all agents with status 'crashed' an...                                     |
| [`calculateTaskRisk()`](/packages/core/api/functions#calculatetaskrisk)                                            | function | Calculate the risk score for a task based on multiple contributing factors....                                       |
| [`predictValidationOutcome()`](/packages/core/api/functions#predictvalidationoutcome)                              | function | Predict the likelihood of a task passing a lifecycle validation gate.  Combin...                                     |
| [`gatherLearningContext()`](/packages/core/api/functions#gatherlearningcontext)                                    | function | Gather applicable learnings for a task from brain\_learnings.                                                        |
| [`suggestGateFocus()`](/packages/core/api/functions#suggestgatefocus)                                              | function | Suggest which verification gates to focus on for a task, ordered by risk.  Us...                                     |
| [`scoreVerificationConfidence()`](/packages/core/api/functions#scoreverificationconfidence)                        | function | Compute a confidence score for a completed verification round and persist it...                                      |
| [`storePrediction()`](/packages/core/api/functions#storeprediction)                                                | function | Store a validation prediction as a brain observation for future learning.  Sa...                                     |
| [`predictAndStore()`](/packages/core/api/functions#predictandstore)                                                | function | Compute a prediction for a task and immediately persist it to brain.  Conveni...                                     |
| [`detectCircularDeps()`](/packages/core/api/functions#detectcirculardeps)                                          | function | Detect circular dependencies using DFS. Returns the cycle path if found, empt...                                     |
| [`wouldCreateCycle()`](/packages/core/api/functions#wouldcreatecycle)                                              | function | Check if adding a dependency would create a cycle.                                                                   |
| [`getBlockedTasks()`](/packages/core/api/functions#getblockedtasks)                                                | function | Get tasks that are blocked (have unmet dependencies).                                                                |
| [`getReadyTasks()`](/packages/core/api/functions#getreadytasks)                                                    | function | Get tasks that are ready (all dependencies met).                                                                     |
| [`getDependents()`](/packages/core/api/functions#getdependents)                                                    | function | Get tasks that depend on a given task.                                                                               |
| [`getDependentIds()`](/packages/core/api/functions#getdependentids)                                                | function | Get dependent IDs.                                                                                                   |
| [`getUnresolvedDeps()`](/packages/core/api/functions#getunresolveddeps)                                            | function | Get unresolved dependencies for a task (deps that are not done/cancelled).                                           |
| [`validateDependencyRefs()`](/packages/core/api/functions#validatedependencyrefs)                                  | function | Validate dependencies for missing references.                                                                        |
| [`validateDependencies()`](/packages/core/api/functions#validatedependencies)                                      | function | Full dependency graph validation.                                                                                    |
| [`topologicalSort()`](/packages/core/api/functions#topologicalsort)                                                | function | Topological sort of tasks by dependencies. Returns sorted task IDs or null if...                                     |
| [`getTransitiveBlockers()`](/packages/core/api/functions#gettransitiveblockers)                                    | function | Walk upstream recursively through a task's dependency chain. Returns all non-...                                     |
| [`getLeafBlockers()`](/packages/core/api/functions#getleafblockers)                                                | function | From the transitive blockers, return only "leaf" blockers — those whose own d...                                     |
| [`computeDependencyWaves()`](/packages/core/api/functions#computedependencywaves)                                  | function | Compute dependency waves for parallel execution. Tasks in the same wave can r...                                     |
| [`getNextTask()`](/packages/core/api/functions#getnexttask)                                                        | function | Get the next task to work on (highest priority ready task).                                                          |
| [`getCriticalPath()`](/packages/core/api/functions#getcriticalpath)                                                | function | Calculate the critical path (longest dependency chain). Returns task IDs alon...                                     |
| [`getTaskOrder()`](/packages/core/api/functions#gettaskorder)                                                      | function | Get task ordering by dependency + priority.                                                                          |
| [`getParallelTasks()`](/packages/core/api/functions#getparalleltasks)                                              | function | Get parallelizable tasks (tasks with no unmet dependencies).                                                         |
| [`analyzeTaskImpact()`](/packages/core/api/functions#analyzetaskimpact)                                            | function | Analyze the full downstream impact of a task.  Computes direct and transitive...                                     |
| [`analyzeChangeImpact()`](/packages/core/api/functions#analyzechangeimpact)                                        | function | Analyze the downstream effects of a specific change to a task.  Predicts what...                                     |
| [`calculateBlastRadius()`](/packages/core/api/functions#calculateblastradius)                                      | function | Calculate the blast radius for a task.  Quantifies how many tasks, epics, and...                                     |
| [`predictImpact()`](/packages/core/api/functions#predictimpact)                                                    | function | Predict the downstream impact of a free-text change description.  Uses fuzzy...                                      |
| [`extractPatternsFromHistory()`](/packages/core/api/functions#extractpatternsfromhistory)                          | function | Analyze brain\_observations and task history to find recurring patterns.  Dete...                                    |
| [`matchPatterns()`](/packages/core/api/functions#matchpatterns)                                                    | function | Find which known patterns from brain\_patterns apply to a given task.  Compare...                                    |
| [`storeDetectedPattern()`](/packages/core/api/functions#storedetectedpattern)                                      | function | Save a detected pattern to the brain\_patterns table.  Uses the existing brain...                                    |
| [`updatePatternStats()`](/packages/core/api/functions#updatepatternstats)                                          | function | Update the frequency and success\_rate of an existing pattern after an outcome...                                    |
| [`validateSyntax()`](/packages/core/api/functions#validatesyntax)                                                  | function | Validate a query string matches expected syntax.                                                                     |
| [`parseQuery()`](/packages/core/api/functions#parsequery)                                                          | function | Parse a query string into its components.                                                                            |
| [`getCurrentProject()`](/packages/core/api/functions#getcurrentproject)                                            | function | Get the current project name from context. Reads .cleo/project-info.json or f...                                     |
| [`resolveProjectPath()`](/packages/core/api/functions#resolveprojectpath)                                          | function | Resolve a project name to its filesystem path. Handles special cases: "." (cu...                                     |
| [`resolveTask()`](/packages/core/api/functions#resolvetask)                                                        | function | Resolve a query to task data. For wildcard queries, returns an array of match...                                     |
| [`getProjectFromQuery()`](/packages/core/api/functions#getprojectfromquery)                                        | function | Extract the project name from a query without full resolution. Useful for per...                                     |
| [`extractKeywords()`](/packages/core/api/functions#extractkeywords)                                                | function | Extract meaningful keywords from text (filters stop words and short tokens).                                         |
| [`discoverRelated()`](/packages/core/api/functions#discoverrelated)                                                | function | Discover tasks related to a given task query across projects.  Returns a stru...                                     |
| [`searchAcrossProjects()`](/packages/core/api/functions#searchacrossprojects)                                      | function | Search for tasks across all registered projects.  Returns a structured result...                                     |
| [`permissionLevel()`](/packages/core/api/functions#permissionlevel)                                                | function | Convert a permission string to its numeric level. Returns 0 for invalid/unkno...                                     |
| [`getPermission()`](/packages/core/api/functions#getpermission)                                                    | function | Get the permission level for a registered project. Returns 'read' as default...                                      |
| [`checkPermission()`](/packages/core/api/functions#checkpermission)                                                | function | Check if a project has sufficient permissions (non-throwing). Uses hierarchic...                                     |
| [`requirePermission()`](/packages/core/api/functions#requirepermission)                                            | function | Require a permission level or throw CleoError. Used as a guard at the start o...                                     |
| [`checkPermissionDetail()`](/packages/core/api/functions#checkpermissiondetail)                                    | function | Full permission check returning a structured result.                                                                 |
| [`setPermission()`](/packages/core/api/functions#setpermission)                                                    | function | Set the permission level for a project. Validates the permission value and up...                                     |
| [`canRead()`](/packages/core/api/functions#canread)                                                                | function | Convenience: check read access.                                                                                      |
| [`canWrite()`](/packages/core/api/functions#canwrite)                                                              | function | Convenience: check write access.                                                                                     |
| [`canExecute()`](/packages/core/api/functions#canexecute)                                                          | function | Convenience: check execute access.                                                                                   |
| [`matchesPattern()`](/packages/core/api/functions#matchespattern)                                                  | function | Match a file path against a glob-like pattern. Supports: '\*' (single segment...                                     |
| [`getSharingStatus()`](/packages/core/api/functions#getsharingstatus)                                              | function | Get the sharing status: which .cleo/ files are tracked vs ignored, plus git s...                                     |
| [`syncGitignore()`](/packages/core/api/functions#syncgitignore)                                                    | function | Sync the project .gitignore to match the sharing config. Adds/updates a manag...                                     |
| [`currentTask()`](/packages/core/api/functions#currenttask)                                                        | function | Show current task work state.  T4462  T4750                                                                          |
| [`startTask()`](/packages/core/api/functions#starttask)                                                            | function | Start working on a specific task.  T4462  T4750                                                                      |
| [`stopTask()`](/packages/core/api/functions#stoptask)                                                              | function | Stop working on the current task.  T4462  T4750                                                                      |
| [`getWorkHistory()`](/packages/core/api/functions#getworkhistory)                                                  | function | Get task work history from session notes.  T4462  T4750                                                              |
| [`completeTask()`](/packages/core/api/functions#completetask)                                                      | function | Complete a task by ID. Handles dependency checking and optional auto-completi...                                     |
| [`validateTitleDescription()`](/packages/core/api/functions#validatetitledescription)                              | function | Validate that title and description are both present and different. This is a...                                     |
| [`validateTimestamps()`](/packages/core/api/functions#validatetimestamps)                                          | function | Validate that timestamps are not in the future                                                                       |
| [`validateIdUniqueness()`](/packages/core/api/functions#validateiduniqueness)                                      | function | Validate ID uniqueness across all tasks (todo + archive)                                                             |
| [`validateNoDuplicateDescription()`](/packages/core/api/functions#validatenoduplicatedescription)                  | function | Validate no duplicate task descriptions                                                                              |
| [`validateHierarchy()`](/packages/core/api/functions#validatehierarchy)                                            | function | Validate hierarchy constraints. Accepts optional limits to override defaults...                                      |
| [`validateStatusTransition()`](/packages/core/api/functions#validatestatustransition)                              | function | Validate status transition                                                                                           |
| [`validateNewTask()`](/packages/core/api/functions#validatenewtask)                                                | function | Run all validation rules on a task being created                                                                     |
| [`hasErrors()`](/packages/core/api/functions#haserrors)                                                            | function | Check if violations contain any errors (not just warnings)                                                           |
| [`updateTask()`](/packages/core/api/functions#updatetask)                                                          | function | Update a task's fields.  T4461                                                                                       |
| [`parseDirective()`](/packages/core/api/functions#parsedirective)                                                  | function | Parse a Conduit message into a structured directive.  Extracts directive verb...                                     |
| [`routeDirective()`](/packages/core/api/functions#routedirective)                                                  | function | Route a Conduit directive to the correct project's CLEO instance.  Resolves w\...                                    |
| [`workspaceStatus()`](/packages/core/api/functions#workspacestatus)                                                | function | Get aggregated task status across all registered projects.  Returns per-proje...                                     |
| [`workspaceAgents()`](/packages/core/api/functions#workspaceagents)                                                | function | Get all agents registered across all projects.  Queries each project's agent\_...                                    |
| [`invalidateDepsCache()`](/packages/core/api/functions#invalidatedepscache)                                        | function | Invalidate the cached TaskFile (call after writes).  T4659  T4654                                                    |
| [`buildGraph()`](/packages/core/api/functions#buildgraph)                                                          | function | Build an adjacency graph from task dependencies.  T4464                                                              |
| [`getDepsOverview()`](/packages/core/api/functions#getdepsoverview)                                                | function | Get dependency overview for all tasks.  T4464                                                                        |
| [`getTaskDeps()`](/packages/core/api/functions#gettaskdeps)                                                        | function | Get dependencies for a specific task.  T4464                                                                         |
| [`topologicalSort()`](/packages/core/api/functions#topologicalsort)                                                | function | Topological sort of tasks respecting dependencies. Returns tasks in execution...                                     |
| [`getExecutionWaves()`](/packages/core/api/functions#getexecutionwaves)                                            | function | Group tasks into parallelizable execution waves.  T4464                                                              |
| [`getCriticalPath()`](/packages/core/api/functions#getcriticalpath)                                                | function | Find the critical path (longest dependency chain) from a task.  T4464                                                |
| [`getImpact()`](/packages/core/api/functions#getimpact)                                                            | function | Find all tasks affected by changes to a given task.  T4464                                                           |
| [`detectCycles()`](/packages/core/api/functions#detectcycles)                                                      | function | Detect circular dependencies in the task graph.  T4464                                                               |
| [`getTaskTree()`](/packages/core/api/functions#gettasktree)                                                        | function | Build task hierarchy tree.  T4464                                                                                    |
| [`addRelation()`](/packages/core/api/functions#addrelation)                                                        | function | Manage task relationships (relates/blocks).  T4464                                                                   |
| [`buildDependencyGraph()`](/packages/core/api/functions#builddependencygraph)                                      | function | Build a dependency graph for a set of tasks.  Returns a Map from task ID to t...                                     |
| [`detectCircularDependencies()`](/packages/core/api/functions#detectcirculardependencies)                          | function | Detect circular dependencies using DFS traversal.                                                                    |
| [`findMissingDependencies()`](/packages/core/api/functions#findmissingdependencies)                                | function | Find missing dependencies — deps that reference tasks outside the epic that a...                                     |
| [`analyzeDependencies()`](/packages/core/api/functions#analyzedependencies)                                        | function | Perform full dependency analysis for an epic's children.  Combines dependency...                                     |
| [`countManifestEntries()`](/packages/core/api/functions#countmanifestentries)                                      | function | Count manifest entries from pipeline\_manifest (ADR-027).                                                            |
| [`estimateContext()`](/packages/core/api/functions#estimatecontext)                                                | function | Estimate context usage for orchestration.                                                                            |
| [`OrchestrationHierarchyImpl`](/packages/core/api/functions#orchestrationhierarchyimpl)                            | class    | Concrete implementation of OrchestrationHierarchyAPI.                                                                |
| [`computeWaves()`](/packages/core/api/functions#computewaves)                                                      | function | Compute execution waves using topological sort.                                                                      |
| [`getEnrichedWaves()`](/packages/core/api/functions#getenrichedwaves)                                              | function | Get enriched wave data for an epic.                                                                                  |
| [`countByStatus()`](/packages/core/api/functions#countbystatus)                                                    | function | Count tasks by status.                                                                                               |
| [`computeEpicStatus()`](/packages/core/api/functions#computeepicstatus)                                            | function | Compute epic-specific status.                                                                                        |
| [`computeOverallStatus()`](/packages/core/api/functions#computeoverallstatus)                                      | function | Compute overall orchestration status across all tasks.                                                               |
| [`computeProgress()`](/packages/core/api/functions#computeprogress)                                                | function | Compute progress metrics for all tasks.                                                                              |
| [`computeStartupSummary()`](/packages/core/api/functions#computestartupsummary)                                    | function | Compute startup summary for an epic.                                                                                 |
| [`startOrchestration()`](/packages/core/api/functions#startorchestration)                                          | function | Start an orchestrator session for an epic.  T4466                                                                    |
| [`analyzeEpic()`](/packages/core/api/functions#analyzeepic)                                                        | function | Analyze an epic's dependency structure.  T4466                                                                       |
| [`getReadyTasks()`](/packages/core/api/functions#getreadytasks)                                                    | function | Get parallel-safe ready tasks for an epic.  T4466                                                                    |
| [`getNextTask()`](/packages/core/api/functions#getnexttask)                                                        | function | Get the next task to work on for an epic.  T4466                                                                     |
| [`prepareSpawn()`](/packages/core/api/functions#preparespawn)                                                      | function | Prepare a spawn context for a subagent.  T4466                                                                       |
| [`validateSpawnOutput()`](/packages/core/api/functions#validatespawnoutput)                                        | function | Validate a subagent's output.  T4466                                                                                 |
| [`getOrchestratorContext()`](/packages/core/api/functions#getorchestratorcontext)                                  | function | Get orchestrator context summary.  T4466                                                                             |
| [`autoDispatch()`](/packages/core/api/functions#autodispatch)                                                      | function | Auto-dispatch: determine the protocol for a task based on metadata.  T4466                                           |
| [`resolveTokens()`](/packages/core/api/functions#resolvetokens)                                                    | function | Resolve tokens in a prompt string.  T4466                                                                            |
| [`getLinksByProvider()`](/packages/core/api/functions#getlinksbyprovider)                                          | function | Find all links for a given provider.                                                                                 |
| [`getLinkByExternalId()`](/packages/core/api/functions#getlinkbyexternalid)                                        | function | Find a link by provider + external ID.                                                                               |
| [`getLinksByTaskId()`](/packages/core/api/functions#getlinksbytaskid)                                              | function | Find all links for a given CLEO task.                                                                                |
| [`createLink()`](/packages/core/api/functions#createlink)                                                          | function | Create a new external task link.                                                                                     |
| [`touchLink()`](/packages/core/api/functions#touchlink)                                                            | function | Update the lastSyncAt and optionally the title/metadata for an existing link.                                        |
| [`removeLinksByProvider()`](/packages/core/api/functions#removelinksbyprovider)                                    | function | Remove all links for a provider (used during provider deregistration).                                               |
| [`reconcile()`](/packages/core/api/functions#reconcile)                                                            | function | Reconcile external task state with CLEO's authoritative task store.                                                  |
| [`getArtifactHandler()`](/packages/core/api/functions#getartifacthandler)                                          | function | Get handler for an artifact type.  T4552                                                                             |
| [`hasArtifactHandler()`](/packages/core/api/functions#hasartifacthandler)                                          | function | Check if a handler is registered for an artifact type.  T4552                                                        |
| [`buildArtifact()`](/packages/core/api/functions#buildartifact)                                                    | function | Build an artifact using the appropriate handler.  T4552                                                              |
| [`validateArtifact()`](/packages/core/api/functions#validateartifact)                                              | function | Validate an artifact using the appropriate handler.  T4552                                                           |
| [`publishArtifact()`](/packages/core/api/functions#publishartifact)                                                | function | Publish an artifact using the appropriate handler.  T4552                                                            |
| [`getSupportedArtifactTypes()`](/packages/core/api/functions#getsupportedartifacttypes)                            | function | Get all supported artifact types.  T4552                                                                             |
| [`parseChangelogBlocks()`](/packages/core/api/functions#parsechangelogblocks)                                      | function | Parse \[custom-log]...\[/custom-log] blocks from a CHANGELOG section. Returns t...                                   |
| [`writeChangelogSection()`](/packages/core/api/functions#writechangelogsection)                                    | function | Write or update a CHANGELOG.md section for a specific version.  - If ## \[VERS...                                    |
| [`loadReleaseConfig()`](/packages/core/api/functions#loadreleaseconfig)                                            | function | Load release configuration with defaults.                                                                            |
| [`validateReleaseConfig()`](/packages/core/api/functions#validatereleaseconfig)                                    | function | Validate release configuration.                                                                                      |
| [`getArtifactType()`](/packages/core/api/functions#getartifacttype)                                                | function | Get artifact type from config.                                                                                       |
| [`getReleaseGates()`](/packages/core/api/functions#getreleasegates)                                                | function | Get release gates from config.                                                                                       |
| [`getChangelogConfig()`](/packages/core/api/functions#getchangelogconfig)                                          | function | Get changelog configuration.                                                                                         |
| [`getDefaultGitFlowConfig()`](/packages/core/api/functions#getdefaultgitflowconfig)                                | function | Return the default GitFlow branch configuration.                                                                     |
| [`getGitFlowConfig()`](/packages/core/api/functions#getgitflowconfig)                                              | function | Merge caller-supplied GitFlow config with defaults.                                                                  |
| [`getDefaultChannelConfig()`](/packages/core/api/functions#getdefaultchannelconfig)                                | function | Return the default channel configuration.                                                                            |
| [`getChannelConfig()`](/packages/core/api/functions#getchannelconfig)                                              | function | Merge caller-supplied channel config with defaults.                                                                  |
| [`getPushMode()`](/packages/core/api/functions#getpushmode)                                                        | function | Return the configured push mode, defaulting to 'auto'.                                                               |
| [`getDefaultChannelConfig()`](/packages/core/api/functions#getdefaultchannelconfig)                                | function | Return the default branch-to-channel mapping.                                                                        |
| [`resolveChannelFromBranch()`](/packages/core/api/functions#resolvechannelfrombranch)                              | function | Resolve the release channel for a given Git branch name.  Resolution order: 1...                                     |
| [`channelToDistTag()`](/packages/core/api/functions#channeltodisttag)                                              | function | Map a release channel to its npm dist-tag string.  Kept as an explicit functi...                                     |
| [`validateVersionChannel()`](/packages/core/api/functions#validateversionchannel)                                  | function | Validate that a version string satisfies the pre-release conventions for the...                                      |
| [`describeChannel()`](/packages/core/api/functions#describechannel)                                                | function | Return a human-readable description of the given release channel.                                                    |
| [`getPlatformPath()`](/packages/core/api/functions#getplatformpath)                                                | function | Get the output path for a CI platform.                                                                               |
| [`detectCIPlatform()`](/packages/core/api/functions#detectciplatform)                                              | function | Detect the CI platform from the project.                                                                             |
| [`generateCIConfig()`](/packages/core/api/functions#generateciconfig)                                              | function | Generate CI config for a platform.                                                                                   |
| [`writeCIConfig()`](/packages/core/api/functions#writeciconfig)                                                    | function | Write CI config to the appropriate path.                                                                             |
| [`validateCIConfig()`](/packages/core/api/functions#validateciconfig)                                              | function | Validate an existing CI config.                                                                                      |
| [`isGhCliAvailable()`](/packages/core/api/functions#isghcliavailable)                                              | function | Check if the `gh` CLI is available by attempting to run `gh --version`. Does...                                      |
| [`extractRepoOwnerAndName()`](/packages/core/api/functions#extractrepoownerandname)                                | function | Parse a GitHub remote URL (HTTPS or SSH) into owner and repo components. Retu...                                     |
| [`detectBranchProtection()`](/packages/core/api/functions#detectbranchprotection)                                  | function | Detect whether a branch has protection rules enabled.  Strategy 1 (preferred)...                                     |
| [`buildPRBody()`](/packages/core/api/functions#buildprbody)                                                        | function | Build the markdown body for a GitHub pull request.                                                                   |
| [`formatManualPRInstructions()`](/packages/core/api/functions#formatmanualprinstructions)                          | function | Format human-readable instructions for creating a PR manually.                                                       |
| [`createPullRequest()`](/packages/core/api/functions#createpullrequest)                                            | function | Create a GitHub pull request using the `gh` CLI, or return manual instruction...                                     |
| [`checkEpicCompleteness()`](/packages/core/api/functions#checkepiccompleteness)                                    | function | Check epic completeness for a set of release task IDs. Verifies all children...                                      |
| [`checkDoubleListing()`](/packages/core/api/functions#checkdoublelisting)                                          | function | Check if any tasks are listed in multiple releases.                                                                  |
| [`validateVersionFormat()`](/packages/core/api/functions#validateversionformat)                                    | function | Validate version format (semver X.Y.Z or CalVer YYYY.M.patch, with optional p...                                     |
| [`isCalVer()`](/packages/core/api/functions#iscalver)                                                              | function | Check if a version string is CalVer format.                                                                          |
| [`calculateNewVersion()`](/packages/core/api/functions#calculatenewversion)                                        | function | Calculate new version from current + bump type.                                                                      |
| [`getVersionBumpConfig()`](/packages/core/api/functions#getversionbumpconfig)                                      | function | Get version bump configuration, mapping config field names to VersionBumpTarget.                                     |
| [`isVersionBumpConfigured()`](/packages/core/api/functions#isversionbumpconfigured)                                | function | Check if version bump is configured.                                                                                 |
| [`bumpVersionFromConfig()`](/packages/core/api/functions#bumpversionfromconfig)                                    | function | Bump version in all configured files.                                                                                |
| [`prepareRelease()`](/packages/core/api/functions#preparerelease)                                                  | function | Prepare a release (create a release manifest entry).  T4788                                                          |
| [`generateReleaseChangelog()`](/packages/core/api/functions#generatereleasechangelog)                              | function | Generate changelog for a release.  T4788                                                                             |
| [`listManifestReleases()`](/packages/core/api/functions#listmanifestreleases)                                      | function | List all releases.  T4788                                                                                            |
| [`showManifestRelease()`](/packages/core/api/functions#showmanifestrelease)                                        | function | Show release details.  T4788                                                                                         |
| [`commitRelease()`](/packages/core/api/functions#commitrelease)                                                    | function | Mark release as committed (metadata only).  T4788                                                                    |
| [`tagRelease()`](/packages/core/api/functions#tagrelease)                                                          | function | Mark release as tagged (metadata only).  T4788                                                                       |
| [`runReleaseGates()`](/packages/core/api/functions#runreleasegates)                                                | function | Run release validation gates.  T4788  T5586                                                                          |
| [`cancelRelease()`](/packages/core/api/functions#cancelrelease)                                                    | function | Cancel and remove a release in draft or prepared state. Only releases that ha...                                     |
| [`rollbackRelease()`](/packages/core/api/functions#rollbackrelease)                                                | function | Rollback a release.  T4788                                                                                           |
| [`pushRelease()`](/packages/core/api/functions#pushrelease)                                                        | function | Push release to remote via git.  Respects config.release.push policy: - remot...                                     |
| [`markReleasePushed()`](/packages/core/api/functions#markreleasepushed)                                            | function | Update release status after push, with optional provenance fields.  T4788  T5580                                     |
| [`migrateReleasesJsonToSqlite()`](/packages/core/api/functions#migratereleasesjsontosqlite)                        | function | One-time migration: read .cleo/releases.json and insert each release into the...                                     |
| [`serializeSession()`](/packages/core/api/functions#serializesession)                                              | function | Serialize a session into a complete snapshot.  Captures the full session stat...                                     |
| [`restoreSession()`](/packages/core/api/functions#restoresession)                                                  | function | Restore a session from a snapshot.  Hydrates a session from a previously seri...                                     |
| [`archiveSticky()`](/packages/core/api/functions#archivesticky)                                                    | function | Archive a sticky note.                                                                                               |
| [`convertStickyToTask()`](/packages/core/api/functions#convertstickytotask)                                        | function | Convert a sticky note to a task.                                                                                     |
| [`convertStickyToMemory()`](/packages/core/api/functions#convertstickytomemory)                                    | function | Convert a sticky note to a memory observation.                                                                       |
| [`convertStickyToTaskNote()`](/packages/core/api/functions#convertstickytotasknote)                                | function | Convert a sticky note to a task note.                                                                                |
| [`convertStickyToSessionNote()`](/packages/core/api/functions#convertstickytosessionnote)                          | function | Convert a sticky note to a session note.                                                                             |
| [`generateStickyId()`](/packages/core/api/functions#generatestickyid)                                              | function | Generate the next sticky note ID.  Finds the highest existing SN-XXX ID and i...                                     |
| [`addSticky()`](/packages/core/api/functions#addsticky)                                                            | function | Create a new sticky note.                                                                                            |
| [`listStickies()`](/packages/core/api/functions#liststickies)                                                      | function | List sticky notes with optional filters.                                                                             |
| [`purgeSticky()`](/packages/core/api/functions#purgesticky)                                                        | function | Purge (permanently delete) a sticky note.                                                                            |
| [`getSticky()`](/packages/core/api/functions#getsticky)                                                            | function | Get a sticky note by ID.                                                                                             |
| [`archiveTasks()`](/packages/core/api/functions#archivetasks)                                                      | function | Archive completed (and optionally cancelled) tasks. Moves them from active ta...                                     |
| [`deleteTask()`](/packages/core/api/functions#deletetask)                                                          | function | Delete a task (soft delete - moves to archive).  T4461                                                               |
| [`Cleo`](/packages/core/api/functions#cleo)                                                                        | class    |                                                                                                                      |
| [`calculateExportChecksum()`](/packages/core/api/functions#calculateexportchecksum)                                | function | Calculate SHA-256 checksum for export integrity (truncated to 16 hex chars).                                         |
| [`verifyExportChecksum()`](/packages/core/api/functions#verifyexportchecksum)                                      | function | Verify export package checksum.                                                                                      |
| [`buildIdMap()`](/packages/core/api/functions#buildidmap)                                                          | function | Build ID map from tasks.                                                                                             |
| [`buildRelationshipGraph()`](/packages/core/api/functions#buildrelationshipgraph)                                  | function | Build relationship graph from tasks.                                                                                 |
| [`buildExportPackage()`](/packages/core/api/functions#buildexportpackage)                                          | function | Build a complete export package.                                                                                     |
| [`exportSingle()`](/packages/core/api/functions#exportsingle)                                                      | function | Export a single task.                                                                                                |
| [`exportSubtree()`](/packages/core/api/functions#exportsubtree)                                                    | function | Export a subtree (task + all descendants).                                                                           |
| [`exportTasksPackage()`](/packages/core/api/functions#exporttaskspackage)                                          | function | Export tasks to a portable cross-project package.                                                                    |
| [`getCostHint()`](/packages/core/api/functions#getcosthint)                                                        | function | Determine cost hint for an operation based on domain and operation name.                                             |
| [`groupOperationsByDomain()`](/packages/core/api/functions#groupoperationsbydomain)                                | function | Group operations by domain into a compact format.                                                                    |
| [`buildVerboseOperations()`](/packages/core/api/functions#buildverboseoperations)                                  | function | Build verbose operation entries with cost hints.                                                                     |
| [`computeHelp()`](/packages/core/api/functions#computehelp)                                                        | function | Compute the help result for the admin.help operation.  Accepts the full OPERA...                                     |
| [`getNextAvailableId()`](/packages/core/api/functions#getnextavailableid)                                          | function | Get the next available task ID number from existing tasks.                                                           |
| [`generateRemapTable()`](/packages/core/api/functions#generateremaptable)                                          | function | Generate a remap table for importing tasks. Maps source task IDs to new seque...                                     |
| [`validateRemapTable()`](/packages/core/api/functions#validateremaptable)                                          | function | Validate that a remap table is complete and consistent.                                                              |
| [`remapTaskId()`](/packages/core/api/functions#remaptaskid)                                                        | function | Remap a single task ID, returning original if not in table.                                                          |
| [`remapTaskReferences()`](/packages/core/api/functions#remaptaskreferences)                                        | function | Remap all ID references in a task.                                                                                   |
| [`detectDuplicateTitles()`](/packages/core/api/functions#detectduplicatetitles)                                    | function | Detect duplicate titles between import and target.                                                                   |
| [`resolveDuplicateTitle()`](/packages/core/api/functions#resolveduplicatetitle)                                    | function | Resolve duplicate title by appending suffix.                                                                         |
| [`importFromPackage()`](/packages/core/api/functions#importfrompackage)                                            | function | Import tasks from an in-memory ExportPackage with ID remapping. Core logic ex...                                     |
| [`importTasksPackage()`](/packages/core/api/functions#importtaskspackage)                                          | function | Import tasks from a cross-project export package file with ID remapping. Thin...                                     |
| [`findAdrs()`](/packages/core/api/functions#findadrs)                                                              | function |                                                                                                                      |
| [`listAdrs()`](/packages/core/api/functions#listadrs)                                                              | function | List ADRs from .cleo/adrs/ directory with optional status filter                                                     |
| [`showAdr()`](/packages/core/api/functions#showadr)                                                                | function | Retrieve a single ADR by ID (e.g., 'ADR-007')                                                                        |
| [`validateAllAdrs()`](/packages/core/api/functions#validatealladrs)                                                | function | Validate all ADRs in .cleo/adrs/ against the schema                                                                  |
| [`providerList()`](/packages/core/api/functions#providerlist)                                                      | function | List all registered providers.  T4332                                                                                |
| [`providerGet()`](/packages/core/api/functions#providerget)                                                        | function | Get a single provider by ID or alias.  T4332                                                                         |
| [`providerDetect()`](/packages/core/api/functions#providerdetect)                                                  | function | Detect all providers installed on the system.  T4332                                                                 |
| [`providerInstalled()`](/packages/core/api/functions#providerinstalled)                                            | function | Get providers that are installed on the system.  T4332                                                               |
| [`providerCount()`](/packages/core/api/functions#providercount)                                                    | function | Get count of registered providers.  T4332                                                                            |
| [`registryVersion()`](/packages/core/api/functions#registryversion)                                                | function | Get CAAMP registry version.  T4332                                                                                   |
| [`injectionCheck()`](/packages/core/api/functions#injectioncheck)                                                  | function | Check injection status for a single file.  T4332                                                                     |
| [`injectionCheckAll()`](/packages/core/api/functions#injectioncheckall)                                            | function | Check injection status across all providers.  T4332                                                                  |
| [`injectionUpdate()`](/packages/core/api/functions#injectionupdate)                                                | function | Inject or update content in a single file.  T4332                                                                    |
| [`injectionUpdateAll()`](/packages/core/api/functions#injectionupdateall)                                          | function | Inject content to all providers' instruction files.  T4332                                                           |
| [`batchInstallWithRollback()`](/packages/core/api/functions#batchinstallwithrollback)                              | function | Install multiple skills atomically with rollback on failure.   T4705  T4663                                          |
| [`checkProviderCapability()`](/packages/core/api/functions#checkprovidercapability)                                | function | Check if provider supports a specific capability                                                                     |
| [`checkProviderCapabilities()`](/packages/core/api/functions#checkprovidercapabilities)                            | function | Check multiple capabilities at once                                                                                  |
| [`detectLanguage()`](/packages/core/api/functions#detectlanguage)                                                  | function | Detect tree-sitter language from a file path.                                                                        |
| [`grammarPackage()`](/packages/core/api/functions#grammarpackage)                                                  | function | Get the npm grammar package name for a language.                                                                     |
| [`isTreeSitterAvailable()`](/packages/core/api/functions#istreesitteravailable)                                    | function | Check if tree-sitter CLI is available and executable. Cached after first call.                                       |
| [`parseFile()`](/packages/core/api/functions#parsefile)                                                            | function | Parse a single file and extract code symbols.                                                                        |
| [`batchParse()`](/packages/core/api/functions#batchparse)                                                          | function | Batch-parse multiple files, grouping by language for efficiency.  Files with...                                      |
| [`smartOutline()`](/packages/core/api/functions#smartoutline)                                                      | function | Generate a smart outline for a source file.  Returns a tree of symbols with s...                                     |
| [`smartSearch()`](/packages/core/api/functions#smartsearch)                                                        | function | Search for symbols across a codebase.  Walks the directory tree, batch-parses...                                     |
| [`smartUnfold()`](/packages/core/api/functions#smartunfold)                                                        | function | Extract a symbol's complete source from a file.  Finds the symbol by name (su...                                     |
| [`getComplianceJsonlPath()`](/packages/core/api/functions#getcompliancejsonlpath)                                  | function | Resolve COMPLIANCE.jsonl path for a project root.                                                                    |
| [`readComplianceJsonl()`](/packages/core/api/functions#readcompliancejsonl)                                        | function | Read COMPLIANCE.jsonl entries. Invalid JSON lines are skipped to preserve app...                                     |
| [`appendComplianceJsonl()`](/packages/core/api/functions#appendcompliancejsonl)                                    | function | Append one entry to COMPLIANCE.jsonl, creating directories as needed.                                                |
| [`getComplianceSummary()`](/packages/core/api/functions#getcompliancesummary)                                      | function | Get compliance summary.                                                                                              |
| [`listComplianceViolations()`](/packages/core/api/functions#listcomplianceviolations)                              | function | List compliance violations.                                                                                          |
| [`getComplianceTrend()`](/packages/core/api/functions#getcompliancetrend)                                          | function | Get compliance trend.                                                                                                |
| [`auditEpicCompliance()`](/packages/core/api/functions#auditepiccompliance)                                        | function | Audit epic compliance.                                                                                               |
| [`syncComplianceMetrics()`](/packages/core/api/functions#synccompliancemetrics)                                    | function | Sync compliance metrics to a summary file.                                                                           |
| [`getSkillReliability()`](/packages/core/api/functions#getskillreliability)                                        | function | Get skill reliability stats.                                                                                         |
| [`getValueMetrics()`](/packages/core/api/functions#getvaluemetrics)                                                | function | Get value metrics (T2833).                                                                                           |
| [`ConduitClient`](/packages/core/api/functions#conduitclient)                                                      | class    | ConduitClient wraps a Transport, adding high-level messaging semantics.                                              |
| [`HttpTransport`](/packages/core/api/functions#httptransport)                                                      | class    | HTTP transport with automatic primary/fallback failover.                                                             |
| [`LocalTransport`](/packages/core/api/functions#localtransport)                                                    | class    | In-process SQLite transport for fully offline agent messaging.                                                       |
| [`SseTransport`](/packages/core/api/functions#ssetransport)                                                        | class    | SseTransport — real-time SSE with HTTP polling fallback.                                                             |
| [`resolveTransport()`](/packages/core/api/functions#resolvetransport)                                              | function | Resolve the best available transport for a credential.  Cloud-backed agents (...                                     |
| [`createConduit()`](/packages/core/api/functions#createconduit)                                                    | function | Create a Conduit instance from the agent registry.                                                                   |
| [`getContextStatus()`](/packages/core/api/functions#getcontextstatus)                                              | function | Get context status.                                                                                                  |
| [`checkContextThreshold()`](/packages/core/api/functions#checkcontextthreshold)                                    | function | Check context threshold (returns exit code info).                                                                    |
| [`listContextSessions()`](/packages/core/api/functions#listcontextsessions)                                        | function | List all context state files.                                                                                        |
| [`validatePayload()`](/packages/core/api/functions#validatepayload)                                                | function | Validate a hook payload against its event-specific Zod schema.  Falls back to...                                     |
| [`injectTasks()`](/packages/core/api/functions#injecttasks)                                                        | function | Inject tasks for external consumption.                                                                               |
| [`collectDiagnostics()`](/packages/core/api/functions#collectdiagnostics)                                          | function | Collect system diagnostics for bug reports.                                                                          |
| [`formatDiagnosticsTable()`](/packages/core/api/functions#formatdiagnosticstable)                                  | function | Format diagnostics as markdown table.                                                                                |
| [`parseIssueTemplates()`](/packages/core/api/functions#parseissuetemplates)                                        | function | Parse all issue templates from available sources. Priority:   1. Packaged tem...                                     |
| [`getTemplateConfig()`](/packages/core/api/functions#gettemplateconfig)                                            | function | Get template configuration - tries live parse, cache, then fallback.                                                 |
| [`getTemplateForSubcommand()`](/packages/core/api/functions#gettemplateforsubcommand)                              | function | Get the template for a specific subcommand (bug, feature, etc.).                                                     |
| [`cacheTemplates()`](/packages/core/api/functions#cachetemplates)                                                  | function | Cache parsed templates to .cleo/issue-templates.json.                                                                |
| [`validateLabelsExist()`](/packages/core/api/functions#validatelabelsexist)                                        | function | Validate that labels referenced in issue templates are consistent.  Collects...                                      |
| [`buildIssueBody()`](/packages/core/api/functions#buildissuebody)                                                  | function | Build structured issue body with template sections.                                                                  |
| [`checkGhCli()`](/packages/core/api/functions#checkghcli)                                                          | function | Check that gh CLI is installed and authenticated.                                                                    |
| [`addIssue()`](/packages/core/api/functions#addissue)                                                              | function | Add a GitHub issue for a given type (bug, feature, help). Returns structured...                                      |
| [`withRetry()`](/packages/core/api/functions#withretry)                                                            | function | Execute an async function with automatic retry and exponential backoff.                                              |
| [`computeDelay()`](/packages/core/api/functions#computedelay)                                                      | function | Compute the wait time before the next attempt.                                                                       |
| [`applyTemporalDecay()`](/packages/core/api/functions#applytemporaldecay)                                          | function | Apply temporal decay to brain\_learnings confidence values.  Entries older tha...                                    |
| [`consolidateMemories()`](/packages/core/api/functions#consolidatememories)                                        | function | Consolidate old observations by keyword similarity.  Groups observations olde...                                     |
| [`migrateBrainData()`](/packages/core/api/functions#migratebraindata)                                              | function | Migrate BRAIN memory data from JSONL files to brain.db.  Reads: - .cleo/memor...                                     |
| [`addResearch()`](/packages/core/api/functions#addresearch)                                                        | function | Add a research entry.                                                                                                |
| [`showResearch()`](/packages/core/api/functions#showresearch)                                                      | function | Show a specific research entry.                                                                                      |
| [`listResearch()`](/packages/core/api/functions#listresearch)                                                      | function | List research entries with optional filtering.                                                                       |
| [`pendingResearch()`](/packages/core/api/functions#pendingresearch)                                                | function | List pending research entries.                                                                                       |
| [`linkResearch()`](/packages/core/api/functions#linkresearch)                                                      | function | Link a research entry to a task.                                                                                     |
| [`updateResearch()`](/packages/core/api/functions#updateresearch)                                                  | function | Update research findings.                                                                                            |
| [`statsResearch()`](/packages/core/api/functions#statsresearch)                                                    | function | Get research statistics.                                                                                             |
| [`linksResearch()`](/packages/core/api/functions#linksresearch)                                                    | function | Get research entries linked to a specific task.                                                                      |
| [`archiveResearch()`](/packages/core/api/functions#archiveresearch)                                                | function | Archive old research entries by status. Moves 'complete' entries to an archiv...                                     |
| [`readManifest()`](/packages/core/api/functions#readmanifest)                                                      | function | Read manifest entries from the legacy agent-outputs flat-file (deprecated per ADR-027).                              |
| [`appendManifest()`](/packages/core/api/functions#appendmanifest)                                                  | function | Append a manifest entry.                                                                                             |
| [`queryManifest()`](/packages/core/api/functions#querymanifest)                                                    | function | Query manifest entries with filtering.                                                                               |
| [`readExtendedManifest()`](/packages/core/api/functions#readextendedmanifest)                                      | function | Read all manifest entries as extended entries.                                                                       |
| [`filterManifestEntries()`](/packages/core/api/functions#filtermanifestentries)                                    | function | Filter manifest entries by criteria.                                                                                 |
| [`showManifestEntry()`](/packages/core/api/functions#showmanifestentry)                                            | function | Show a manifest entry by ID with optional file content.                                                              |
| [`searchManifest()`](/packages/core/api/functions#searchmanifest)                                                  | function | Search manifest entries by text with relevance scoring.                                                              |
| [`pendingManifestEntries()`](/packages/core/api/functions#pendingmanifestentries)                                  | function | Get pending manifest entries (partial, blocked, or needing followup).                                                |
| [`manifestStats()`](/packages/core/api/functions#manifeststats)                                                    | function | Get manifest-based research statistics.                                                                              |
| [`linkManifestEntry()`](/packages/core/api/functions#linkmanifestentry)                                            | function | Link a manifest entry to a task (adds taskId to linked\_tasks array).                                                |
| [`appendExtendedManifest()`](/packages/core/api/functions#appendextendedmanifest)                                  | function | Append an extended manifest entry. Validates required fields before appending.                                       |
| [`archiveManifestEntries()`](/packages/core/api/functions#archivemanifestentries)                                  | function | Archive manifest entries older than a date.                                                                          |
| [`findContradictions()`](/packages/core/api/functions#findcontradictions)                                          | function | Find manifest entries with overlapping topics but conflicting key\_findings.                                         |
| [`findSuperseded()`](/packages/core/api/functions#findsuperseded)                                                  | function | Identify research entries replaced by newer work on same topic.                                                      |
| [`readProtocolInjection()`](/packages/core/api/functions#readprotocolinjection)                                    | function | Read protocol injection content for a given protocol type.                                                           |
| [`compactManifest()`](/packages/core/api/functions#compactmanifest)                                                | function | Compact the legacy agent-outputs flat-file by removing duplicate/stale entries.                                      |
| [`validateManifestEntries()`](/packages/core/api/functions#validatemanifestentries)                                | function | Validate research entries for a task.                                                                                |
| [`ensureMetricsDir()`](/packages/core/api/functions#ensuremetricsdir)                                              | function | Ensure metrics directory exists, returning its path.                                                                 |
| [`getCompliancePath()`](/packages/core/api/functions#getcompliancepath)                                            | function | Get compliance log path.                                                                                             |
| [`getViolationsPath()`](/packages/core/api/functions#getviolationspath)                                            | function | Get violations log path.                                                                                             |
| [`getSessionsMetricsPath()`](/packages/core/api/functions#getsessionsmetricspath)                                  | function | Get sessions metrics log path.                                                                                       |
| [`isoTimestamp()`](/packages/core/api/functions#isotimestamp)                                                      | function | Generate ISO 8601 UTC timestamp.                                                                                     |
| [`isoDate()`](/packages/core/api/functions#isodate)                                                                | function | Generate ISO 8601 date only.                                                                                         |
| [`readJsonlFile()`](/packages/core/api/functions#readjsonlfile)                                                    | function | Read a JSONL file into an array of parsed objects.                                                                   |
| [`getComplianceSummaryBase()`](/packages/core/api/functions#getcompliancesummarybase)                              | function | Get compliance summary from log file.                                                                                |
| [`isOtelEnabled()`](/packages/core/api/functions#isotelenabled)                                                    | function | Check if OTel telemetry is enabled.                                                                                  |
| [`getOtelSetupCommands()`](/packages/core/api/functions#getotelsetupcommands)                                      | function | Get environment variable commands for OTel capture setup.                                                            |
| [`parseTokenMetrics()`](/packages/core/api/functions#parsetokenmetrics)                                            | function | Parse OTel token metrics from collected data.                                                                        |
| [`getSessionTokens()`](/packages/core/api/functions#getsessiontokens)                                              | function | Get aggregated token counts from OTel data.                                                                          |
| [`recordSessionStart()`](/packages/core/api/functions#recordsessionstart)                                          | function | Record token counts at session start.                                                                                |
| [`recordSessionEnd()`](/packages/core/api/functions#recordsessionend)                                              | function | Record token counts at session end.                                                                                  |
| [`compareSessions()`](/packages/core/api/functions#comparesessions)                                                | function | Compare token usage between two sessions.                                                                            |
| [`getTokenStats()`](/packages/core/api/functions#gettokenstats)                                                    | function | Get statistics about token usage across sessions.                                                                    |
| [`logABEvent()`](/packages/core/api/functions#logabevent)                                                          | function | Log an A/B test event.                                                                                               |
| [`startABTest()`](/packages/core/api/functions#startabtest)                                                        | function | Start an A/B test session.                                                                                           |
| [`endABTest()`](/packages/core/api/functions#endabtest)                                                            | function | End an A/B test session with summary.                                                                                |
| [`getABTestResults()`](/packages/core/api/functions#getabtestresults)                                              | function | Get results for a specific test variant.                                                                             |
| [`listABTests()`](/packages/core/api/functions#listabtests)                                                        | function | List all A/B tests.                                                                                                  |
| [`compareABTest()`](/packages/core/api/functions#compareabtest)                                                    | function | Compare two variants of the same test.                                                                               |
| [`getABTestStats()`](/packages/core/api/functions#getabteststats)                                                  | function | Get aggregate statistics of all A/B tests.                                                                           |
| [`syncMetricsToGlobal()`](/packages/core/api/functions#syncmetricstoglobal)                                        | function | Sync project metrics to global aggregation file.                                                                     |
| [`getProjectComplianceSummary()`](/packages/core/api/functions#getprojectcompliancesummary)                        | function | Get compliance summary for the current project.                                                                      |
| [`getGlobalComplianceSummary()`](/packages/core/api/functions#getglobalcompliancesummary)                          | function | Get compliance summary across all projects.                                                                          |
| [`getComplianceTrend()`](/packages/core/api/functions#getcompliancetrend)                                          | function | Get compliance trend over time.                                                                                      |
| [`getSkillReliability()`](/packages/core/api/functions#getskillreliability)                                        | function | Get reliability stats per skill/agent.                                                                               |
| [`logSessionMetrics()`](/packages/core/api/functions#logsessionmetrics)                                            | function | Log session metrics to SESSIONS.jsonl.                                                                               |
| [`getSessionMetricsSummary()`](/packages/core/api/functions#getsessionmetricssummary)                              | function | Get summary of session metrics.                                                                                      |
| [`isValidEnumValue()`](/packages/core/api/functions#isvalidenumvalue)                                              | function | Validate that a value is a member of a given enum.                                                                   |
| [`estimateTokens()`](/packages/core/api/functions#estimatetokens)                                                  | function | Estimate token count from text. \~4 characters per token.                                                            |
| [`estimateTokensFromFile()`](/packages/core/api/functions#estimatetokensfromfile)                                  | function | Estimate token count from a file.                                                                                    |
| [`logTokenEvent()`](/packages/core/api/functions#logtokenevent)                                                    | function | Log a token usage event to the JSONL file.                                                                           |
| [`trackFileRead()`](/packages/core/api/functions#trackfileread)                                                    | function | Track a file read with token estimate.                                                                               |
| [`trackManifestQuery()`](/packages/core/api/functions#trackmanifestquery)                                          | function | Track a manifest query (partial read).                                                                               |
| [`trackSkillInjection()`](/packages/core/api/functions#trackskillinjection)                                        | function | Track skill injection with tokens.                                                                                   |
| [`trackPromptBuild()`](/packages/core/api/functions#trackpromptbuild)                                              | function | Track final prompt size.                                                                                             |
| [`trackSpawnOutput()`](/packages/core/api/functions#trackspawnoutput)                                              | function | Track subagent output tokens.                                                                                        |
| [`trackSpawnComplete()`](/packages/core/api/functions#trackspawncomplete)                                          | function | Track complete spawn cycle (prompt + output).                                                                        |
| [`startTokenSession()`](/packages/core/api/functions#starttokensession)                                            | function | Start tracking tokens for a session.                                                                                 |
| [`endTokenSession()`](/packages/core/api/functions#endtokensession)                                                | function | End token tracking session with summary.                                                                             |
| [`getTokenSummary()`](/packages/core/api/functions#gettokensummary)                                                | function | Get token usage summary for a time period.                                                                           |
| [`compareManifestVsFull()`](/packages/core/api/functions#comparemanifestvsfull)                                    | function | Compare manifest vs full file token usage strategies.                                                                |
| [`getTrackingStatus()`](/packages/core/api/functions#gettrackingstatus)                                            | function | Get tracking status.                                                                                                 |
| [`computeChecksum()`](/packages/core/api/functions#computechecksum)                                                | function | Compute SHA-256 checksum of a file.                                                                                  |
| [`verifyBackup()`](/packages/core/api/functions#verifybackup)                                                      | function | Verify that a backup file matches the source file and is a valid SQLite datab...                                     |
| [`compareChecksums()`](/packages/core/api/functions#comparechecksums)                                              | function | Quick checksum comparison without SQLite verification. Use when you only need...                                     |
| [`MigrationLogger`](/packages/core/api/functions#migrationlogger)                                                  | class    | Structured logger for migration operations                                                                           |
| [`createMigrationLogger()`](/packages/core/api/functions#createmigrationlogger)                                    | function | Create a migration logger for the given cleo directory. Convenience function...                                      |
| [`readMigrationLog()`](/packages/core/api/functions#readmigrationlog)                                              | function | Read and parse a migration log file.                                                                                 |
| [`logFileExists()`](/packages/core/api/functions#logfileexists)                                                    | function | Check if a log file exists and is readable.                                                                          |
| [`getLatestMigrationLog()`](/packages/core/api/functions#getlatestmigrationlog)                                    | function | Get the most recent migration log file for a cleo directory.                                                         |
| [`checkStorageMigration()`](/packages/core/api/functions#checkstoragemigration)                                    | function | Check whether legacy JSON data needs to be migrated to SQLite.  Returns a dia...                                     |
| [`createMigrationState()`](/packages/core/api/functions#createmigrationstate)                                      | function | Create initial migration state at the start of migration.  Captures source fi...                                     |
| [`updateMigrationState()`](/packages/core/api/functions#updatemigrationstate)                                      | function | Update migration state with partial updates.  Merges updates with existing st...                                     |
| [`updateMigrationPhase()`](/packages/core/api/functions#updatemigrationphase)                                      | function | Update just the migration phase. Convenience wrapper for common phase transit...                                     |
| [`updateMigrationProgress()`](/packages/core/api/functions#updatemigrationprogress)                                | function | Update progress counters during import.                                                                              |
| [`addMigrationError()`](/packages/core/api/functions#addmigrationerror)                                            | function | Add an error to the migration state.                                                                                 |
| [`addMigrationWarning()`](/packages/core/api/functions#addmigrationwarning)                                        | function | Add a warning to the migration state.                                                                                |
| [`loadMigrationState()`](/packages/core/api/functions#loadmigrationstate)                                          | function | Load existing migration state.                                                                                       |
| [`isMigrationInProgress()`](/packages/core/api/functions#ismigrationinprogress)                                    | function | Check if a migration is in progress.                                                                                 |
| [`canResumeMigration()`](/packages/core/api/functions#canresumemigration)                                          | function | Check if migration can be resumed.                                                                                   |
| [`completeMigration()`](/packages/core/api/functions#completemigration)                                            | function | Mark migration as complete.                                                                                          |
| [`failMigration()`](/packages/core/api/functions#failmigration)                                                    | function | Mark migration as failed with error details.                                                                         |
| [`clearMigrationState()`](/packages/core/api/functions#clearmigrationstate)                                        | function | Clear migration state file. Safe to call even if state doesn't exist.                                                |
| [`getMigrationSummary()`](/packages/core/api/functions#getmigrationsummary)                                        | function | Get a summary of migration state for display.                                                                        |
| [`verifySourceIntegrity()`](/packages/core/api/functions#verifysourceintegrity)                                    | function | Verify source files haven't changed since migration started.  Compares curren...                                     |
| [`validateSourceFiles()`](/packages/core/api/functions#validatesourcefiles)                                        | function | Validate all JSON source files before migration.  This function MUST be calle...                                     |
| [`formatValidationResult()`](/packages/core/api/functions#formatvalidationresult)                                  | function | Format validation result for human-readable output.                                                                  |
| [`checkTaskCountMismatch()`](/packages/core/api/functions#checktaskcountmismatch)                                  | function | Check for task count mismatch between existing database and JSON.  This helps...                                     |
| [`detectVersion()`](/packages/core/api/functions#detectversion)                                                    | function | Detect schema version from a data file.  T4468                                                                       |
| [`compareSemver()`](/packages/core/api/functions#comparesemver)                                                    | function | Compare two version strings (X.Y.Z format, works for both semver and CalVer)....                                     |
| [`getMigrationStatus()`](/packages/core/api/functions#getmigrationstatus)                                          | function | Get migration status for all data files.  T4468                                                                      |
| [`runMigration()`](/packages/core/api/functions#runmigration)                                                      | function | Run migrations on a data file.  T4468                                                                                |
| [`runAllMigrations()`](/packages/core/api/functions#runallmigrations)                                              | function | Run all pending migrations.  T4468                                                                                   |
| [`invalidateGraphCache()`](/packages/core/api/functions#invalidategraphcache)                                      | function | Invalidate the in-memory graph cache.                                                                                |
| [`buildGlobalGraph()`](/packages/core/api/functions#buildglobalgraph)                                              | function | Build the global dependency graph from all registered projects. Uses checksum...                                     |
| [`nexusDeps()`](/packages/core/api/functions#nexusdeps)                                                            | function | Show dependencies for a task across projects. Supports forward (what this dep...                                     |
| [`resolveCrossDeps()`](/packages/core/api/functions#resolvecrossdeps)                                              | function | Resolve an array of dependencies (local or cross-project).                                                           |
| [`criticalPath()`](/packages/core/api/functions#criticalpath)                                                      | function | Calculate the critical path across project boundaries. Returns the longest de...                                     |
| [`blockingAnalysis()`](/packages/core/api/functions#blockinganalysis)                                              | function | Analyze the blocking impact of a task across all projects. Uses BFS to find a...                                     |
| [`orphanDetection()`](/packages/core/api/functions#orphandetection)                                                | function | Detect orphaned cross-project dependencies. Finds tasks with dependency refer...                                     |
| [`previewTransfer()`](/packages/core/api/functions#previewtransfer)                                                | function | Preview a transfer without writing any data. Validates projects, permissions,...                                     |
| [`executeTransfer()`](/packages/core/api/functions#executetransfer)                                                | function | Execute a cross-project task transfer.  Pipeline:   1. Validate source/target...                                     |
| [`compareLevels()`](/packages/core/api/functions#comparelevels)                                                    | function | Compare two pino levels numerically. Returns negative if a  b, 0 if equal, po...                                     |
| [`matchesFilter()`](/packages/core/api/functions#matchesfilter)                                                    | function | Check if a single entry matches the filter criteria. All specified fields mus...                                     |
| [`filterEntries()`](/packages/core/api/functions#filterentries)                                                    | function | Filter an array of parsed log entries against criteria. Returns entries match...                                     |
| [`paginate()`](/packages/core/api/functions#paginate)                                                              | function | Apply pagination (limit/offset) to a result set.                                                                     |
| [`isValidLevel()`](/packages/core/api/functions#isvalidlevel)                                                      | function | Validate that a string is a valid PinoLevel.                                                                         |
| [`parseLogLine()`](/packages/core/api/functions#parselogline)                                                      | function | Parse a single JSONL line into a PinoLogEntry. Returns null for empty lines,...                                      |
| [`parseLogLines()`](/packages/core/api/functions#parseloglines)                                                    | function | Parse multiple JSONL lines into PinoLogEntry array. Skips malformed lines.                                           |
| [`getProjectLogDir()`](/packages/core/api/functions#getprojectlogdir)                                              | function | Get the project log directory path. Uses getLogDir() from logger if available...                                     |
| [`getGlobalLogDir()`](/packages/core/api/functions#getgloballogdir)                                                | function | Get the global log directory path (\~/.cleo/logs/).                                                                  |
| [`discoverLogFiles()`](/packages/core/api/functions#discoverlogfiles)                                              | function | Discover all log files in the specified scope. Returns file info sorted by da...                                     |
| [`readLogFileLines()`](/packages/core/api/functions#readlogfilelines)                                              | function | Read all lines from a log file synchronously. Returns raw JSON strings (one p...                                     |
| [`streamLogFileLines()`](/packages/core/api/functions#streamlogfilelines)                                          | function | Create an async iterable over lines of a log file. Suitable for large files -...                                     |
| [`queryLogs()`](/packages/core/api/functions#querylogs)                                                            | function | High-level query: discover files, parse, filter, paginate. Convenience wrappe...                                     |
| [`streamLogs()`](/packages/core/api/functions#streamlogs)                                                          | function | Stream-based query for large log datasets. Yields matching entries one at a t...                                     |
| [`getLogSummary()`](/packages/core/api/functions#getlogsummary)                                                    | function | Get a summary of log activity (counts by level, date range, subsystems). Read...                                     |
| [`getOtelStatus()`](/packages/core/api/functions#getotelstatus)                                                    | function | Get token tracking status.                                                                                           |
| [`getOtelSummary()`](/packages/core/api/functions#getotelsummary)                                                  | function | Get combined token usage summary.                                                                                    |
| [`getOtelSessions()`](/packages/core/api/functions#getotelsessions)                                                | function | Get session-level token data.                                                                                        |
| [`getOtelSpawns()`](/packages/core/api/functions#getotelspawns)                                                    | function | Get spawn-level token data.                                                                                          |
| [`getRealTokenUsage()`](/packages/core/api/functions#getrealtokenusage)                                            | function | Get real token usage from Claude Code API.                                                                           |
| [`clearOtelData()`](/packages/core/api/functions#clearoteldata)                                                    | function | Clear token tracking data with backup.                                                                               |
| [`listPhases()`](/packages/core/api/functions#listphases)                                                          | function | List all phases with status summaries.  T5326                                                                        |
| [`showPhase()`](/packages/core/api/functions#showphase)                                                            | function | Show phase details by slug or current phase.  T5326                                                                  |
| [`getCurrentBranch()`](/packages/core/api/functions#getcurrentbranch)                                              | function | Get the current branch name in .cleo/.git.  T4884                                                                    |
| [`addRemote()`](/packages/core/api/functions#addremote)                                                            | function | Add a git remote to .cleo/.git.  T4884                                                                               |
| [`removeRemote()`](/packages/core/api/functions#removeremote)                                                      | function | Remove a git remote from .cleo/.git.  T4884                                                                          |
| [`listRemotes()`](/packages/core/api/functions#listremotes)                                                        | function | List configured remotes in .cleo/.git.  T4884                                                                        |
| [`push()`](/packages/core/api/functions#push)                                                                      | function | Push .cleo/.git to a remote.  T4884                                                                                  |
| [`pull()`](/packages/core/api/functions#pull)                                                                      | function | Pull from a remote into .cleo/.git. Uses rebase strategy to maintain clean hi...                                     |
| [`getSyncStatus()`](/packages/core/api/functions#getsyncstatus)                                                    | function | Get the sync status between local .cleo/.git and remote.  T4884                                                      |
| [`getRoadmap()`](/packages/core/api/functions#getroadmap)                                                          | function | Get roadmap from pending epics and CHANGELOG history.                                                                |
| [`getOperationMode()`](/packages/core/api/functions#getoperationmode)                                              | function | Lookup the execution mode for a specific operation                                                                   |
| [`canRunNatively()`](/packages/core/api/functions#canrunnatively)                                                  | function | Check if an operation can run natively (without CLI)                                                                 |
| [`requiresCLI()`](/packages/core/api/functions#requirescli)                                                        | function | Check if an operation requires CLI                                                                                   |
| [`getNativeOperations()`](/packages/core/api/functions#getnativeoperations)                                        | function | Get all native-capable operations for a domain                                                                       |
| [`generateCapabilityReport()`](/packages/core/api/functions#generatecapabilityreport)                              | function | Generate a capability report for system.doctor                                                                       |
| [`getCapabilityMatrix()`](/packages/core/api/functions#getcapabilitymatrix)                                        | function | Get the full capability matrix (for testing/introspection)                                                           |
| [`findHighestId()`](/packages/core/api/functions#findhighestid)                                                    | function | Find the highest existing task ID number                                                                             |
| [`generateNextIdFromSet()`](/packages/core/api/functions#generatenextidfromset)                                    | function | Generate the next ID given an explicit set of existing IDs. Useful when calle...                                     |
| [`isValidTaskId()`](/packages/core/api/functions#isvalidtaskid)                                                    | function | Validate that a task ID matches the expected format                                                                  |
| [`normalizeTaskId()`](/packages/core/api/functions#normalizetaskid)                                                | function | Normalize a task ID input to canonical T#### format.  Accepts various loose f...                                     |
| [`SecurityError`](/packages/core/api/functions#securityerror)                                                      | class    | Security validation error thrown when input fails sanitization                                                       |
| [`sanitizeTaskId()`](/packages/core/api/functions#sanitizetaskid)                                                  | function | Sanitize and validate a task ID                                                                                      |
| [`sanitizePath()`](/packages/core/api/functions#sanitizepath)                                                      | function | Sanitize and validate a file path                                                                                    |
| [`sanitizeContent()`](/packages/core/api/functions#sanitizecontent)                                                | function | Sanitize content string                                                                                              |
| [`validateEnum()`](/packages/core/api/functions#validateenum)                                                      | function | Validate that a value is in an allowed enum set                                                                      |
| [`RateLimiter`](/packages/core/api/functions#ratelimiter)                                                          | class    | In-memory sliding window rate limiter                                                                                |
| [`ensureArray()`](/packages/core/api/functions#ensurearray)                                                        | function | Normalize a value to an array of strings. Handles external clients sending co...                                     |
| [`sanitizeParams()`](/packages/core/api/functions#sanitizeparams)                                                  | function | Sanitize all params in a request before routing                                                                      |
| [`getAgentsDir()`](/packages/core/api/functions#getagentsdir)                                                      | function | Get the agents directory path.  T4518                                                                                |
| [`parseAgentConfig()`](/packages/core/api/functions#parseagentconfig)                                              | function | Parse an AGENT.md file into an AgentConfig. AGENT.md uses the same YAML front...                                     |
| [`loadAgentConfig()`](/packages/core/api/functions#loadagentconfig)                                                | function | Load agent configuration by name. Searches in the agents/ directory.  T4518                                          |
| [`getSubagentConfig()`](/packages/core/api/functions#getsubagentconfig)                                            | function | Get the cleo-subagent configuration (universal executor).  T4518                                                     |
| [`agentExists()`](/packages/core/api/functions#agentexists)                                                        | function | Check if an agent definition exists.  T4518                                                                          |
| [`installAgent()`](/packages/core/api/functions#installagent)                                                      | function | Install a single agent via symlink.  T4518                                                                           |
| [`installAllAgents()`](/packages/core/api/functions#installallagents)                                              | function | Install all agents from the project agents/ directory.  T4518                                                        |
| [`uninstallAgent()`](/packages/core/api/functions#uninstallagent)                                                  | function | Uninstall a single agent by removing its symlink.  T4518                                                             |
| [`getRegistryPath()`](/packages/core/api/functions#getregistrypath)                                                | function | Get the agent registry file path.  T4518                                                                             |
| [`readRegistry()`](/packages/core/api/functions#readregistry)                                                      | function | Read the agent registry, creating if needed.  T4518                                                                  |
| [`saveRegistry()`](/packages/core/api/functions#saveregistry)                                                      | function | Save the agent registry.  T4518                                                                                      |
| [`registerAgent()`](/packages/core/api/functions#registeragent)                                                    | function | Register an agent in the registry.  T4518                                                                            |
| [`unregisterAgent()`](/packages/core/api/functions#unregisteragent)                                                | function | Unregister an agent from the registry.  T4518                                                                        |
| [`getAgent()`](/packages/core/api/functions#getagent)                                                              | function | Get an agent from the registry by name.  T4518                                                                       |
| [`listAgents()`](/packages/core/api/functions#listagents)                                                          | function | List all registered agents.  T4518                                                                                   |
| [`syncRegistry()`](/packages/core/api/functions#syncregistry)                                                      | function | Scan the agents/ directory and register all found agents.  T4518                                                     |
| [`loadProtocolBase()`](/packages/core/api/functions#loadprotocolbase)                                              | function | Load the subagent protocol base content.  T4521                                                                      |
| [`buildTaskContext()`](/packages/core/api/functions#buildtaskcontext)                                              | function | Build task context block for injection into a subagent prompt.  T4521                                                |
| [`filterProtocolByTier()`](/packages/core/api/functions#filterprotocolbytier)                                      | function | Filter protocol content by MVI tier. Extracts sections based on !-- TIER:X --...                                     |
| [`injectProtocol()`](/packages/core/api/functions#injectprotocol)                                                  | function | Inject the subagent protocol into skill content. Composes: skill content + pr...                                     |
| [`orchestratorSpawnSkill()`](/packages/core/api/functions#orchestratorspawnskill)                                  | function | Full orchestrator spawn workflow (skill-based). High-level function that load...                                     |
| [`prepareTokenValues()`](/packages/core/api/functions#preparetokenvalues)                                          | function | Prepare standard token values for a task spawn.  T4521                                                               |
| [`installSkill()`](/packages/core/api/functions#installskill)                                                      | function | Install a single skill via CAAMP.                                                                                    |
| [`generateContributionId()`](/packages/core/api/functions#generatecontributionid)                                  | function | Generate a unique contribution ID.  T4520                                                                            |
| [`validateContributionTask()`](/packages/core/api/functions#validatecontributiontask)                              | function | Validate that a task is suitable for contribution protocol.  T4520                                                   |
| [`getContributionInjection()`](/packages/core/api/functions#getcontributioninjection)                              | function | Generate the contribution injection block for a subagent prompt.  T4520                                              |
| [`detectConflicts()`](/packages/core/api/functions#detectconflicts)                                                | function | Detect conflicts between two sets of decisions.  T4520                                                               |
| [`computeConsensus()`](/packages/core/api/functions#computeconsensus)                                              | function | Compute weighted consensus from multiple agent decisions.  T4520                                                     |
| [`createContributionManifestEntry()`](/packages/core/api/functions#createcontributionmanifestentry)                | function | Create a manifest entry for a contribution.  T4520                                                                   |
| [`ensureOutputs()`](/packages/core/api/functions#ensureoutputs)                                                    | function | Ensure agent outputs directory and manifest file exist.  T4520                                                       |
| [`readManifest()`](/packages/core/api/functions#readmanifest)                                                      | function | Read all manifest entries.  T4520                                                                                    |
| [`appendManifest()`](/packages/core/api/functions#appendmanifest)                                                  | function | Append a manifest entry (atomic JSONL append).  T4520                                                                |
| [`findEntry()`](/packages/core/api/functions#findentry)                                                            | function | Find a manifest entry by ID.  T4520                                                                                  |
| [`filterEntries()`](/packages/core/api/functions#filterentries)                                                    | function | Filter manifest entries by criteria.  T4520                                                                          |
| [`getPendingFollowup()`](/packages/core/api/functions#getpendingfollowup)                                          | function | Get entries with pending follow-ups.  T4520                                                                          |
| [`getFollowupTaskIds()`](/packages/core/api/functions#getfollowuptaskids)                                          | function | Get unique follow-up task IDs from all manifest entries.  T4520                                                      |
| [`taskHasResearch()`](/packages/core/api/functions#taskhasresearch)                                                | function | Check if a task has linked research.  T4520                                                                          |
| [`archiveEntry()`](/packages/core/api/functions#archiveentry)                                                      | function | Archive a manifest entry (move to archive status).  T4520                                                            |
| [`rotateManifest()`](/packages/core/api/functions#rotatemanifest)                                                  | function | Rotate manifest by archiving old entries.  T4520                                                                     |
| [`isCacheFresh()`](/packages/core/api/functions#iscachefresh)                                                      | function | Check if the cached manifest is fresh (within TTL).  T4520                                                           |
| [`invalidateCache()`](/packages/core/api/functions#invalidatecache)                                                | function | Invalidate the cache (delete the cached manifest).  T4520                                                            |
| [`resolveManifest()`](/packages/core/api/functions#resolvemanifest)                                                | function | Resolve the skills manifest. Returns a cached version if fresh, otherwise gen...                                     |
| [`regenerateCache()`](/packages/core/api/functions#regeneratecache)                                                | function | Force regenerate the cache.  T4520                                                                                   |
| [`loadConfig()`](/packages/core/api/functions#loadconfig)                                                          | function | Load SkillsMP configuration from skillsmp.json.  T4521                                                               |
| [`searchSkills()`](/packages/core/api/functions#searchskills)                                                      | function | Search the skills marketplace. Delegates to CAAMP's searchSkills for the actu...                                     |
| [`getSkill()`](/packages/core/api/functions#getskill)                                                              | function | Get a specific skill from the marketplace. Uses CAAMP's MarketplaceClient for...                                     |
| [`isEnabled()`](/packages/core/api/functions#isenabled)                                                            | function | Check if the marketplace is enabled and reachable.  T4521                                                            |
| [`buildPrompt()`](/packages/core/api/functions#buildprompt)                                                        | function | Build a fully-resolved prompt for spawning a subagent.  T4519                                                        |
| [`spawn()`](/packages/core/api/functions#spawn)                                                                    | function | Generate full spawn command with metadata.  T4519                                                                    |
| [`canParallelize()`](/packages/core/api/functions#canparallelize)                                                  | function | Check if tasks can be spawned in parallel (no inter-dependencies).  T4519                                            |
| [`spawnBatch()`](/packages/core/api/functions#spawnbatch)                                                          | function | Spawn prompts for multiple tasks in a batch. Ports orchestrator\_spawn\_batch f...                                   |
| [`getThresholds()`](/packages/core/api/functions#getthresholds)                                                    | function | Get orchestrator context thresholds from config or defaults.  T4519                                                  |
| [`getContextState()`](/packages/core/api/functions#getcontextstate)                                                | function | Read the current context state from session-aware files.  T4519                                                      |
| [`sessionInit()`](/packages/core/api/functions#sessioninit)                                                        | function | Initialize orchestrator session state. Determines the recommended action base...                                     |
| [`shouldPause()`](/packages/core/api/functions#shouldpause)                                                        | function | Check if orchestrator should pause based on context usage.  T4519                                                    |
| [`analyzeDependencies()`](/packages/core/api/functions#analyzedependencies)                                        | function | Analyze dependency graph and compute execution waves.  T4519                                                         |
| [`getNextTask()`](/packages/core/api/functions#getnexttask)                                                        | function | Get the next task ready to spawn for an epic.  T4519                                                                 |
| [`getReadyTasks()`](/packages/core/api/functions#getreadytasks)                                                    | function | Get all tasks ready to spawn in parallel (no inter-dependencies).  T4519                                             |
| [`generateHitlSummary()`](/packages/core/api/functions#generatehitlsummary)                                        | function | Generate a Human-in-the-Loop summary for session handoff.  T4519                                                     |
| [`validateSubagentOutput()`](/packages/core/api/functions#validatesubagentoutput)                                  | function | Validate a subagent's manifest entry for protocol compliance.  T4519                                                 |
| [`validateManifestIntegrity()`](/packages/core/api/functions#validatemanifestintegrity)                            | function | Validate the entire manifest file integrity.  T4519                                                                  |
| [`verifyCompliance()`](/packages/core/api/functions#verifycompliance)                                              | function | Verify previous agent completed protocol compliance before spawning next.  T4519                                     |
| [`validateOrchestratorCompliance()`](/packages/core/api/functions#validateorchestratorcompliance)                  | function | Validate orchestrator compliance (post-hoc behavioral checks).  T4519                                                |
| [`getSkillSearchPaths()`](/packages/core/api/functions#getskillsearchpaths)                                        | function | Get ordered skill search paths based on configuration.  Priority: 1. CLEO\_SKI...                                    |
| [`resolveSkillPath()`](/packages/core/api/functions#resolveskillpath)                                              | function | Resolve a skill directory containing SKILL.md. Searches all paths from getSki...                                     |
| [`resolveProtocolPath()`](/packages/core/api/functions#resolveprotocolpath)                                        | function | Resolve a protocol .md file.  Search order: 1....                                                                    |
| [`resolveSharedPath()`](/packages/core/api/functions#resolvesharedpath)                                            | function | Resolve a shared resource .md file.  Search order per base path:...                                                  |
| [`getSkillSourceType()`](/packages/core/api/functions#getskillsourcetype)                                          | function | Classify the source of a skill directory.  Determines where a skill directory...                                     |
| [`formatIsoDate()`](/packages/core/api/functions#formatisodate)                                                    | function | Format a date string in ISO 8601 format. Converts a YYYY-MM-DD date string to...                                     |
| [`getCurrentTimestamp()`](/packages/core/api/functions#getcurrenttimestamp)                                        | function | Get current timestamp in ISO 8601 format. Returns the current UTC time as an...                                      |
| [`isValidIsoDate()`](/packages/core/api/functions#isvalidisodate)                                                  | function | Validate that a string is a valid ISO 8601 date.  T4552                                                              |
| [`formatDateYMD()`](/packages/core/api/functions#formatdateymd)                                                    | function | Format a Date object to a YYYY-MM-DD string.  T4552                                                                  |
| [`validateSkill()`](/packages/core/api/functions#validateskill)                                                    | function | Validate a skill directory structure and content.  T4517                                                             |
| [`validateSkills()`](/packages/core/api/functions#validateskills)                                                  | function | Validate multiple skills at once.  T4517                                                                             |
| [`validateReturnMessage()`](/packages/core/api/functions#validatereturnmessage)                                    | function | Validate a return message against protocol-compliant patterns.  T4517                                                |
| [`getInstalledVersionAsync()`](/packages/core/api/functions#getinstalledversionasync)                              | function | Get the installed version of a skill from CAAMP lock state.                                                          |
| [`checkSkillUpdateAsync()`](/packages/core/api/functions#checkskillupdateasync)                                    | function | Check if a specific skill needs an update via CAAMP.                                                                 |
| [`checkAllSkillUpdatesAsync()`](/packages/core/api/functions#checkallskillupdatesasync)                            | function | Check all installed skills for available updates via CAAMP.                                                          |
| [`exportSnapshot()`](/packages/core/api/functions#exportsnapshot)                                                  | function | Export current task state to a snapshot.  T4882                                                                      |
| [`writeSnapshot()`](/packages/core/api/functions#writesnapshot)                                                    | function | Write a snapshot to a file.  T4882                                                                                   |
| [`readSnapshot()`](/packages/core/api/functions#readsnapshot)                                                      | function | Read a snapshot from a file.  T4882                                                                                  |
| [`getDefaultSnapshotPath()`](/packages/core/api/functions#getdefaultsnapshotpath)                                  | function | Generate a default snapshot file path.  T4882                                                                        |
| [`importSnapshot()`](/packages/core/api/functions#importsnapshot)                                                  | function | Import a snapshot into the local task database. Uses last-write-wins strategy...                                     |
| [`SpawnAdapterRegistry`](/packages/core/api/functions#spawnadapterregistry)                                        | class    | Registry to manage spawn adapters.  Maintains mappings between adapter IDs, p...                                     |
| [`getProvidersWithSpawnCapability()`](/packages/core/api/functions#getproviderswithspawncapability)                | function | Get providers by specific spawn capability  Queries CAAMP for providers that...                                      |
| [`hasParallelSpawnProvider()`](/packages/core/api/functions#hasparallelspawnprovider)                              | function | Check if any provider supports parallel spawn                                                                        |
| [`initializeSpawnAdapters()`](/packages/core/api/functions#initializespawnadapters)                                | function | Initialize spawn adapters dynamically from discovered adapter manifests.  Sca...                                     |
| [`initializeDefaultAdapters()`](/packages/core/api/functions#initializedefaultadapters)                            | function | Initialize the registry with default adapters.  Legacy entry point that disco...                                     |
| [`getWorkflowComplianceReport()`](/packages/core/api/functions#getworkflowcompliancereport)                        | function | Compute workflow compliance metrics from existing task, session, and audit da...                                     |
| [`getProjectStats()`](/packages/core/api/functions#getprojectstats)                                                | function | Get project statistics.                                                                                              |
| [`rankBlockedTask()`](/packages/core/api/functions#rankblockedtask)                                                | function | Compute a ranking score for a blocked task. Higher score = more urgent = sort...                                     |
| [`getDashboard()`](/packages/core/api/functions#getdashboard)                                                      | function | Get project dashboard data.                                                                                          |
| [`getCompletionHistory()`](/packages/core/api/functions#getcompletionhistory)                                      | function | Get completion history data.                                                                                         |
| [`filterByDate()`](/packages/core/api/functions#filterbydate)                                                      | function | Filter tasks by date range on archivedAt.                                                                            |
| [`summaryReport()`](/packages/core/api/functions#summaryreport)                                                    | function | Generate summary statistics.                                                                                         |
| [`byPhaseReport()`](/packages/core/api/functions#byphasereport)                                                    | function | Group tasks by phase with cycle time averages.                                                                       |
| [`byLabelReport()`](/packages/core/api/functions#bylabelreport)                                                    | function | Group tasks by label frequency.                                                                                      |
| [`byPriorityReport()`](/packages/core/api/functions#bypriorityreport)                                              | function | Group tasks by priority with cycle time averages.                                                                    |
| [`cycleTimesReport()`](/packages/core/api/functions#cycletimesreport)                                              | function | Compute cycle time statistics with distribution buckets.                                                             |
| [`trendsReport()`](/packages/core/api/functions#trendsreport)                                                      | function | Compute archive trends by day and month.                                                                             |
| [`analyzeArchive()`](/packages/core/api/functions#analyzearchive)                                                  | function | Analyze archived tasks and produce a report.  This is the primary entry point...                                     |
| [`getArchiveStats()`](/packages/core/api/functions#getarchivestats)                                                | function | Get archive statistics.                                                                                              |
| [`auditData()`](/packages/core/api/functions#auditdata)                                                            | function | Audit data integrity.                                                                                                |
| [`createBackup()`](/packages/core/api/functions#createbackup)                                                      | function | Create a backup of CLEO data files.                                                                                  |
| [`listSystemBackups()`](/packages/core/api/functions#listsystembackups)                                            | function | List all available system backups (snapshot, safety, migration types). Reads...                                      |
| [`restoreBackup()`](/packages/core/api/functions#restorebackup)                                                    | function | Restore from a backup.                                                                                               |
| [`cleanupSystem()`](/packages/core/api/functions#cleanupsystem)                                                    | function | Cleanup stale data (sessions, backups, logs).                                                                        |
| [`writeJsonFileAtomic()`](/packages/core/api/functions#writejsonfileatomic)                                        | function | Write a JSON file atomically with backup rotation.  Pattern: write temp - bac...                                     |
| [`readJsonFile()`](/packages/core/api/functions#readjsonfile)                                                      | function | Read a JSON file, returning parsed content or null if not found.                                                     |
| [`getDataPath()`](/packages/core/api/functions#getdatapath)                                                        | function | Get the path to a CLEO data file within a project root.                                                              |
| [`resolveProjectRoot()`](/packages/core/api/functions#resolveprojectroot)                                          | function | Resolve the project root directory. Checks CLEO\_ROOT env, then falls back to...                                     |
| [`withLock()`](/packages/core/api/functions#withlock)                                                              | function | Read and write a JSON file with exclusive locking.  Acquires a cross-process...                                      |
| [`withFileLock()`](/packages/core/api/functions#withfilelock)                                                      | function | Acquire a file lock and execute an operation. Unlike withLock, this doesn't r...                                     |
| [`withMultiLock()`](/packages/core/api/functions#withmultilock)                                                    | function | Acquire locks on multiple files in correct order. Used for operations that ne...                                     |
| [`isProjectInitialized()`](/packages/core/api/functions#isprojectinitialized)                                      | function | Check if a CLEO project directory exists at the given path                                                           |
| [`listBackups()`](/packages/core/api/functions#listbackups)                                                        | function | List backup files for a given data file                                                                              |
| [`detectPlatform()`](/packages/core/api/functions#detectplatform)                                                  | function | Detect the current platform.                                                                                         |
| [`commandExists()`](/packages/core/api/functions#commandexists)                                                    | function | Check if a command exists on PATH.                                                                                   |
| [`requireTool()`](/packages/core/api/functions#requiretool)                                                        | function | Require a tool to be available, returning an error message if missing.                                               |
| [`checkRequiredTools()`](/packages/core/api/functions#checkrequiredtools)                                          | function | Check all required tools.                                                                                            |
| [`getIsoTimestamp()`](/packages/core/api/functions#getisotimestamp)                                                | function | Get ISO 8601 UTC timestamp.                                                                                          |
| [`isoToEpoch()`](/packages/core/api/functions#isotoepoch)                                                          | function | Convert ISO timestamp to epoch seconds.                                                                              |
| [`dateDaysAgo()`](/packages/core/api/functions#datedaysago)                                                        | function | Get ISO date for N days ago.                                                                                         |
| [`getFileSize()`](/packages/core/api/functions#getfilesize)                                                        | function | Get file size in bytes.                                                                                              |
| [`getFileMtime()`](/packages/core/api/functions#getfilemtime)                                                      | function | Get file modification time as ISO string.                                                                            |
| [`generateRandomHex()`](/packages/core/api/functions#generaterandomhex)                                            | function | Generate N random hex characters.                                                                                    |
| [`sha256()`](/packages/core/api/functions#sha256)                                                                  | function | Compute SHA-256 checksum of a string.                                                                                |
| [`createTempFilePath()`](/packages/core/api/functions#createtempfilepath)                                          | function | Create a temporary file path.                                                                                        |
| [`getNodeVersionInfo()`](/packages/core/api/functions#getnodeversioninfo)                                          | function | Get Node.js version info.                                                                                            |
| [`getNodeUpgradeInstructions()`](/packages/core/api/functions#getnodeupgradeinstructions)                          | function | Get platform-specific Node.js upgrade instructions. Returns actionable instal...                                     |
| [`getSystemInfo()`](/packages/core/api/functions#getsysteminfo)                                                    | function | Gather a snapshot of the host system.  This is the SSoT for system informatio...                                     |
| [`checkCliInstallation()`](/packages/core/api/functions#checkcliinstallation)                                      | function | T4525                                                                                                                |
| [`checkCliVersion()`](/packages/core/api/functions#checkcliversion)                                                | function | T4525                                                                                                                |
| [`checkDocsAccessibility()`](/packages/core/api/functions#checkdocsaccessibility)                                  | function | T4525                                                                                                                |
| [`checkAtReferenceResolution()`](/packages/core/api/functions#checkatreferenceresolution)                          | function | T4525                                                                                                                |
| [`checkAgentsMdHub()`](/packages/core/api/functions#checkagentsmdhub)                                              | function | Check that AGENTS.md exists in project root and contains the CAAMP:START mark...                                     |
| [`checkRootGitignore()`](/packages/core/api/functions#checkrootgitignore)                                          | function | Check if project root .gitignore is blocking the entire .cleo/ directory. Thi...                                     |
| [`checkCleoGitignore()`](/packages/core/api/functions#checkcleogitignore)                                          | function | Check if .cleo/.gitignore exists and matches the template.  T4700                                                    |
| [`checkVitalFilesTracked()`](/packages/core/api/functions#checkvitalfilestracked)                                  | function | Check that vital CLEO configuration files are tracked by git. Only checks con...                                     |
| [`checkCoreFilesNotIgnored()`](/packages/core/api/functions#checkcorefilesnotignored)                              | function | Check that core CLEO files are not being ignored by .gitignore. Uses...                                              |
| [`checkSqliteNotTracked()`](/packages/core/api/functions#checksqlitenottracked)                                    | function | Check that SQLite databases (.cleo/tasks.db) are NOT tracked by project git....                                      |
| [`checkLegacyAgentOutputs()`](/packages/core/api/functions#checklegacyagentoutputs)                                | function | Check if any legacy output directories still exist. Delegates detection to th...                                     |
| [`checkCaampMarkerIntegrity()`](/packages/core/api/functions#checkcaampmarkerintegrity)                            | function | Verify balanced CAAMP:START/END markers in CLAUDE.md and AGENTS.md.  T5153                                           |
| [`checkAtReferenceTargetExists()`](/packages/core/api/functions#checkatreferencetargetexists)                      | function | Parse  references from AGENTS.md CAAMP block and verify each target file exis...                                     |
| [`checkTemplateFreshness()`](/packages/core/api/functions#checktemplatefreshness)                                  | function | Compare templates/CLEO-INJECTION.md vs \~/.cleo/templates/CLEO-INJECTION.md....                                      |
| [`checkTierMarkersPresent()`](/packages/core/api/functions#checktiermarkerspresent)                                | function | Verify all 3 tier markers exist with matching close tags in deployed template...                                     |
| [`checkNodeVersion()`](/packages/core/api/functions#checknodeversion)                                              | function | Check that Node.js meets the minimum required version. Provides OS-specific u...                                     |
| [`checkGlobalSchemaHealth()`](/packages/core/api/functions#checkglobalschemahealth)                                | function | Check that global schemas at \~/.cleo/schemas/ are installed and not stale. De...                                    |
| [`checkNoLocalSchemas()`](/packages/core/api/functions#checknolocalschemas)                                        | function | Warn if deprecated .cleo/schemas/ directory still exists in the project. Sche...                                     |
| [`checkJsonSchemaIntegrity()`](/packages/core/api/functions#checkjsonschemaintegrity)                              | function | Check that active JSON files (config.json, project-info.json, etc.) are valid...                                     |
| [`runAllGlobalChecks()`](/packages/core/api/functions#runallglobalchecks)                                          | function | Run all global health checks and return results array.  T4525                                                        |
| [`calculateHealthStatus()`](/packages/core/api/functions#calculatehealthstatus)                                    | function | Calculate overall status from check results. Returns: 0=passed, 50=warning, 5...                                     |
| [`getSystemHealth()`](/packages/core/api/functions#getsystemhealth)                                                | function | Run system health checks (SQLite-first per ADR-006).                                                                 |
| [`getSystemDiagnostics()`](/packages/core/api/functions#getsystemdiagnostics)                                      | function | Run extended diagnostics with fix suggestions.                                                                       |
| [`coreDoctorReport()`](/packages/core/api/functions#coredoctorreport)                                              | function | Run comprehensive doctor diagnostics combining dependency checks, directory c...                                     |
| [`runDoctorFixes()`](/packages/core/api/functions#rundoctorfixes)                                                  | function | Run auto-fix for failed doctor checks by calling the corresponding ensure\* fu...                                    |
| [`startupHealthCheck()`](/packages/core/api/functions#startuphealthcheck)                                          | function | Unified startup health check for CLI entry points.  This is the single entry...                                      |
| [`generateInjection()`](/packages/core/api/functions#generateinjection)                                            | function | Generate Minimum Viable Injection (MVI) markdown.                                                                    |
| [`getLabels()`](/packages/core/api/functions#getlabels)                                                            | function | Get all labels with counts and task IDs per label.                                                                   |
| [`getSystemMetrics()`](/packages/core/api/functions#getsystemmetrics)                                              | function | Get system metrics: token usage, compliance summary, session counts.                                                 |
| [`getMigrationStatus()`](/packages/core/api/functions#getmigrationstatus)                                          | function | Check/report schema migration status.                                                                                |
| [`getRuntimeDiagnostics()`](/packages/core/api/functions#getruntimediagnostics)                                    | function |                                                                                                                      |
| [`safestop()`](/packages/core/api/functions#safestop)                                                              | function | Safe stop: signal clean shutdown for agents.                                                                         |
| [`uncancelTask()`](/packages/core/api/functions#uncanceltask)                                                      | function | Uncancel a cancelled task (restore to pending).                                                                      |
| [`parseIssueTemplates()`](/packages/core/api/functions#parseissuetemplates)                                        | function | Parse all templates from the repo's .github/ISSUE\_TEMPLATE/ directory.  Reads...                                    |
| [`getTemplateForSubcommand()`](/packages/core/api/functions#gettemplateforsubcommand)                              | function | Get template config for a specific subcommand (bug/feature/help).  Performs a...                                     |
| [`generateTemplateConfig()`](/packages/core/api/functions#generatetemplateconfig)                                  | function | Generate and cache the config as .cleo/issue-templates.json.  Performs a live...                                     |
| [`validateLabels()`](/packages/core/api/functions#validatelabels)                                                  | function | Validate that labels exist on a GitHub repo.  Compares the template labels ag...                                     |
| [`getCurrentShell()`](/packages/core/api/functions#getcurrentshell)                                                | function | Detect the current shell.                                                                                            |
| [`getRcFilePath()`](/packages/core/api/functions#getrcfilepath)                                                    | function | Get the RC file path for a shell.                                                                                    |
| [`detectAvailableShells()`](/packages/core/api/functions#detectavailableshells)                                    | function | Detect which shells are available on the system.                                                                     |
| [`generateBashAliases()`](/packages/core/api/functions#generatebashaliases)                                        | function | Generate bash/zsh alias content.                                                                                     |
| [`generatePowershellAliases()`](/packages/core/api/functions#generatepowershellaliases)                            | function | Generate PowerShell alias content.                                                                                   |
| [`hasAliasBlock()`](/packages/core/api/functions#hasaliasblock)                                                    | function | Check if aliases are already injected in a file.                                                                     |
| [`getInstalledVersion()`](/packages/core/api/functions#getinstalledversion)                                        | function | Get the installed alias version from an RC file.                                                                     |
| [`injectAliases()`](/packages/core/api/functions#injectaliases)                                                    | function | Inject aliases into a shell RC file.                                                                                 |
| [`removeAliases()`](/packages/core/api/functions#removealiases)                                                    | function | Remove aliases from a shell RC file.                                                                                 |
| [`checkAliasesStatus()`](/packages/core/api/functions#checkaliasesstatus)                                          | function | Get alias status for the current shell.                                                                              |
| [`discoverReleaseTasks()`](/packages/core/api/functions#discoverreleasetasks)                                      | function | Discover task IDs for a release from completed tasks. Optionally filtered by...                                      |
| [`groupTasksIntoSections()`](/packages/core/api/functions#grouptasksintosections)                                  | function | Group tasks into changelog sections.                                                                                 |
| [`generateChangelogMarkdown()`](/packages/core/api/functions#generatechangelogmarkdown)                            | function | Generate changelog markdown for a version.                                                                           |
| [`formatChangelogJson()`](/packages/core/api/functions#formatchangelogjson)                                        | function | Format changelog data as JSON.                                                                                       |
| [`writeChangelogFile()`](/packages/core/api/functions#writechangelogfile)                                          | function | Write changelog content to a file.                                                                                   |
| [`appendToChangelog()`](/packages/core/api/functions#appendtochangelog)                                            | function | Append a new release section to an existing CHANGELOG.md.                                                            |
| [`generateChangelog()`](/packages/core/api/functions#generatechangelog)                                            | function | Full changelog generation: discover tasks, group, generate, write.                                                   |
| [`parseCommandHeader()`](/packages/core/api/functions#parsecommandheader)                                          | function | Parse a ###CLEO header block from a script file.                                                                     |
| [`scanAllCommands()`](/packages/core/api/functions#scanallcommands)                                                | function | Scan a scripts directory and build a command registry. Returns a map of comma...                                     |
| [`validateHeader()`](/packages/core/api/functions#validateheader)                                                  | function | Validate a command header has required fields.                                                                       |
| [`getCommandScriptMap()`](/packages/core/api/functions#getcommandscriptmap)                                        | function | Get command-to-script mapping.                                                                                       |
| [`getCommandsByCategory()`](/packages/core/api/functions#getcommandsbycategory)                                    | function | Group commands by category.                                                                                          |
| [`getCommandsByRelevance()`](/packages/core/api/functions#getcommandsbyrelevance)                                  | function | Filter commands by relevance level.                                                                                  |
| [`defaultFlags()`](/packages/core/api/functions#defaultflags)                                                      | function | Default flag values.                                                                                                 |
| [`parseCommonFlags()`](/packages/core/api/functions#parsecommonflags)                                              | function | Parse common CLI flags from an argument array. Returns flags and remaining po...                                     |
| [`resolveFormat()`](/packages/core/api/functions#resolveformat)                                                    | function | Resolve output format based on flags and TTY detection. Returns 'json' for no...                                     |
| [`isJsonOutput()`](/packages/core/api/functions#isjsonoutput)                                                      | function | Check if output should be JSON.                                                                                      |
| [`checkManifestEntry()`](/packages/core/api/functions#checkmanifestentry)                                          | function | Verify a manifest entry for a task has valid required fields.  T4524                                                 |
| [`checkReturnFormat()`](/packages/core/api/functions#checkreturnformat)                                            | function | Check if a response matches the expected return format.  T4524                                                       |
| [`scoreSubagentCompliance()`](/packages/core/api/functions#scoresubagentcompliance)                                | function | Calculate comprehensive compliance score for a subagent.  T4524                                                      |
| [`calculateTokenEfficiency()`](/packages/core/api/functions#calculatetokenefficiency)                              | function | Calculate token efficiency metrics.  T4524                                                                           |
| [`calculateOrchestrationOverhead()`](/packages/core/api/functions#calculateorchestrationoverhead)                  | function | Calculate orchestration overhead metrics.  T4524                                                                     |
| [`getScriptCommands()`](/packages/core/api/functions#getscriptcommands)                                            | function | Get command names from scripts directory. Returns sorted list of script basen...                                     |
| [`getIndexScripts()`](/packages/core/api/functions#getindexscripts)                                                | function | Get script names from COMMANDS-INDEX.json.  T4527                                                                    |
| [`getIndexCommands()`](/packages/core/api/functions#getindexcommands)                                              | function | Get command names from COMMANDS-INDEX.json.  T4527                                                                   |
| [`checkCommandsSync()`](/packages/core/api/functions#checkcommandssync)                                            | function | Check commands index vs scripts directory for sync.  T4527                                                           |
| [`checkWrapperSync()`](/packages/core/api/functions#checkwrappersync)                                              | function | Check wrapper template sync with COMMANDS-INDEX.  T4527                                                              |
| [`detectDrift()`](/packages/core/api/functions#detectdrift)                                                        | function | Run full drift detection across scripts, index, wrapper, and README.  T4527                                          |
| [`shouldRunDriftDetection()`](/packages/core/api/functions#shouldrundriftdetection)                                | function | Check if drift detection should run automatically based on config.  T4527                                            |
| [`getCacheFilePath()`](/packages/core/api/functions#getcachefilepath)                                              | function | Get cache file path.  T4525                                                                                          |
| [`initCacheFile()`](/packages/core/api/functions#initcachefile)                                                    | function | Initialize empty cache file.  T4525                                                                                  |
| [`loadCache()`](/packages/core/api/functions#loadcache)                                                            | function | Load cache file or return null if missing/invalid.  T4525                                                            |
| [`getFileHash()`](/packages/core/api/functions#getfilehash)                                                        | function | Get file hash for cache invalidation.  T4525                                                                         |
| [`getCachedValidation()`](/packages/core/api/functions#getcachedvalidation)                                        | function | Check if project validation is cached and valid. Returns the cache entry if v...                                     |
| [`cacheValidationResult()`](/packages/core/api/functions#cachevalidationresult)                                    | function | Cache project validation results.  T4525                                                                             |
| [`clearProjectCache()`](/packages/core/api/functions#clearprojectcache)                                            | function | Clear cache for a specific project.  T4525                                                                           |
| [`clearEntireCache()`](/packages/core/api/functions#clearentirecache)                                              | function | Clear entire cache.  T4525                                                                                           |
| [`isTempProject()`](/packages/core/api/functions#istempproject)                                                    | function | Check if a project path is a temporary/test directory.  T4525                                                        |
| [`categorizeProjects()`](/packages/core/api/functions#categorizeprojects)                                          | function | Filter projects into categories: active, temp, orphaned.  T4525                                                      |
| [`getProjectCategoryName()`](/packages/core/api/functions#getprojectcategoryname)                                  | function | Get human-readable project category name.  T4525                                                                     |
| [`formatProjectHealthSummary()`](/packages/core/api/functions#formatprojecthealthsummary)                          | function | Format project health summary for display.  T4525                                                                    |
| [`getProjectGuidance()`](/packages/core/api/functions#getprojectguidance)                                          | function | Get actionable guidance for project issues.  T4525                                                                   |
| [`getUserJourneyStage()`](/packages/core/api/functions#getuserjourneystage)                                        | function | Check user journey stage based on system state.  T4525                                                               |
| [`getJourneyGuidance()`](/packages/core/api/functions#getjourneyguidance)                                          | function | Get journey-specific guidance text.  T4525                                                                           |
| [`sanitizeFilePath()`](/packages/core/api/functions#sanitizefilepath)                                              | function | Sanitize a file path for safe shell usage. Prevents command injection via mal...                                     |
| [`validateTitle()`](/packages/core/api/functions#validatetitle)                                                    | function | Validate a task title. Checks for emptiness, newlines, invisible characters,...                                      |
| [`validateDescription()`](/packages/core/api/functions#validatedescription)                                        | function | T4523                                                                                                                |
| [`validateNote()`](/packages/core/api/functions#validatenote)                                                      | function | T4523                                                                                                                |
| [`validateBlockedBy()`](/packages/core/api/functions#validateblockedby)                                            | function | T4523                                                                                                                |
| [`validateSessionNote()`](/packages/core/api/functions#validatesessionnote)                                        | function | T4523                                                                                                                |
| [`validateCancelReason()`](/packages/core/api/functions#validatecancelreason)                                      | function | Validate a cancellation reason.  T4523                                                                               |
| [`validateStatusTransition()`](/packages/core/api/functions#validatestatustransition)                              | function | Validate that a status transition is allowed.  T4523                                                                 |
| [`isValidStatus()`](/packages/core/api/functions#isvalidstatus)                                                    | function | Check if a status string is valid.  T4523                                                                            |
| [`checkTimestampSanity()`](/packages/core/api/functions#checktimestampsanity)                                      | function | Check timestamp format and sanity.  T4523                                                                            |
| [`isMetadataOnlyUpdate()`](/packages/core/api/functions#ismetadataonlyupdate)                                      | function | Check if an update contains only metadata fields (safe for done tasks).  T4523                                       |
| [`normalizeLabels()`](/packages/core/api/functions#normalizelabels)                                                | function | Deduplicate and normalize labels.  T4523                                                                             |
| [`checkIdUniqueness()`](/packages/core/api/functions#checkiduniqueness)                                            | function | Check ID uniqueness within and across files.  T4523                                                                  |
| [`validateTask()`](/packages/core/api/functions#validatetask)                                                      | function | Validate a single task object.  T4523                                                                                |
| [`validateNoCircularDeps()`](/packages/core/api/functions#validatenocirculardeps)                                  | function | Check for circular dependencies using DFS.  T4523                                                                    |
| [`validateSingleActivePhase()`](/packages/core/api/functions#validatesingleactivephase)                            | function | Validate only one phase is active.  T4523                                                                            |
| [`validateCurrentPhaseConsistency()`](/packages/core/api/functions#validatecurrentphaseconsistency)                | function | Validate currentPhase matches an active phase.  T4523                                                                |
| [`validatePhaseTimestamps()`](/packages/core/api/functions#validatephasetimestamps)                                | function | Validate phase timestamp ordering.  T4523                                                                            |
| [`validatePhaseStatusRequirements()`](/packages/core/api/functions#validatephasestatusrequirements)                | function | Validate phase status requirements (e.g., active phases must have startedAt)....                                     |
| [`validateAll()`](/packages/core/api/functions#validateall)                                                        | function | Run all validation checks on a TaskFile.  T4523                                                                      |
| [`parseManifest()`](/packages/core/api/functions#parsemanifest)                                                    | function | Parse a manifest JSONL content string into entries. Skips invalid JSON lines gracefully...                           |
| [`findReviewDocs()`](/packages/core/api/functions#findreviewdocs)                                                  | function | Find documents in review status.  T4524                                                                              |
| [`extractTopics()`](/packages/core/api/functions#extracttopics)                                                    | function | Extract markdown headings from file content.  T4524                                                                  |
| [`searchCanonicalCoverage()`](/packages/core/api/functions#searchcanonicalcoverage)                                | function | Search for topic coverage in a docs directory. Returns count of matching file...                                     |
| [`analyzeCoverage()`](/packages/core/api/functions#analyzecoverage)                                                | function | Analyze documentation coverage for review documents.  T4524                                                          |
| [`formatGapReport()`](/packages/core/api/functions#formatgapreport)                                                | function | Format a gap report for human-readable display.  T4524                                                               |
| [`findManifestEntry()`](/packages/core/api/functions#findmanifestentry)                                            | function | Find a manifest entry for a task ID in a JSONL file.  T4526                                                          |
| [`validateManifestEntry()`](/packages/core/api/functions#validatemanifestentry)                                    | function | Run validation on a manifest entry for a specific task.  T4526                                                       |
| [`logRealCompliance()`](/packages/core/api/functions#logrealcompliance)                                            | function | Log validation results to the compliance JSONL file.  T4526                                                          |
| [`validateAndLog()`](/packages/core/api/functions#validateandlog)                                                  | function | Find, validate, and log compliance for a task in one call.  T4526                                                    |
| [`checkOutputFileExists()`](/packages/core/api/functions#checkoutputfileexists)                                    | function | Check if expected output file exists.  T4527                                                                         |
| [`checkDocumentationSections()`](/packages/core/api/functions#checkdocumentationsections)                          | function | Check if file contains required documentation sections.  T4527                                                       |
| [`checkReturnMessageFormat()`](/packages/core/api/functions#checkreturnmessageformat)                              | function | Check if return message follows protocol format. Expected: " . See MANIFEST.j...                                     |
| [`checkManifestFieldPresent()`](/packages/core/api/functions#checkmanifestfieldpresent)                            | function | Check if manifest entry has a required field (non-null, non-empty).  T4527                                           |
| [`checkManifestFieldType()`](/packages/core/api/functions#checkmanifestfieldtype)                                  | function | Check if manifest field has expected type.  T4527                                                                    |
| [`checkKeyFindingsCount()`](/packages/core/api/functions#checkkeyfindingscount)                                    | function | Check if key\_findings array has valid count (3-7).  T4527                                                           |
| [`checkStatusValid()`](/packages/core/api/functions#checkstatusvalid)                                              | function | Check if status is valid enum value.  T4527                                                                          |
| [`checkAgentType()`](/packages/core/api/functions#checkagenttype)                                                  | function | Check if agent\_type matches expected value.  T4527                                                                  |
| [`checkLinkedTasksPresent()`](/packages/core/api/functions#checklinkedtaskspresent)                                | function | Check if linked\_tasks array contains required task IDs.  T4527                                                      |
| [`checkProvenanceTags()`](/packages/core/api/functions#checkprovenancetags)                                        | function | Check if file contains  provenance tag.  T4527                                                                       |
| [`validateCommonManifestRequirements()`](/packages/core/api/functions#validatecommonmanifestrequirements)          | function | Validate common manifest requirements across all protocols.  When protocolTyp...                                     |
| [`isValidGateName()`](/packages/core/api/functions#isvalidgatename)                                                | function | T4526                                                                                                                |
| [`isValidAgentName()`](/packages/core/api/functions#isvalidagentname)                                              | function | T4526                                                                                                                |
| [`getGateOrder()`](/packages/core/api/functions#getgateorder)                                                      | function | T4526                                                                                                                |
| [`getGateIndex()`](/packages/core/api/functions#getgateindex)                                                      | function | T4526                                                                                                                |
| [`getDownstreamGates()`](/packages/core/api/functions#getdownstreamgates)                                          | function | T4526                                                                                                                |
| [`initVerification()`](/packages/core/api/functions#initverification)                                              | function | Initialize a new verification object with default values.  T4526                                                     |
| [`computePassed()`](/packages/core/api/functions#computepassed)                                                    | function | Compute whether verification has passed based on required gates.  T4526                                              |
| [`setVerificationPassed()`](/packages/core/api/functions#setverificationpassed)                                    | function | Update the passed field on a verification object.  T4526                                                             |
| [`updateGate()`](/packages/core/api/functions#updategate)                                                          | function | Update a single gate value.  T4526                                                                                   |
| [`resetDownstreamGates()`](/packages/core/api/functions#resetdownstreamgates)                                      | function | Reset all downstream gates to null after a gate failure.  T4526                                                      |
| [`incrementRound()`](/packages/core/api/functions#incrementround)                                                  | function | Increment the round counter. Returns null if max rounds exceeded.  T4526                                             |
| [`logFailure()`](/packages/core/api/functions#logfailure)                                                          | function | Log a failure to the failureLog array.  T4526                                                                        |
| [`checkAllGatesPassed()`](/packages/core/api/functions#checkallgatespassed)                                        | function | Check if all required gates have passed.  T4526                                                                      |
| [`isVerificationComplete()`](/packages/core/api/functions#isverificationcomplete)                                  | function | Check if verification is complete (passed = true).  T4526                                                            |
| [`getVerificationStatus()`](/packages/core/api/functions#getverificationstatus)                                    | function | Get verification status for display.  T4526                                                                          |
| [`shouldRequireVerification()`](/packages/core/api/functions#shouldrequireverification)                            | function | Check if a task type should require verification.  T4526                                                             |
| [`getMissingGates()`](/packages/core/api/functions#getmissinggates)                                                | function | Get gate names that are not yet true.  T4526                                                                         |
| [`getGateSummary()`](/packages/core/api/functions#getgatesummary)                                                  | function | Get gate summary for display.  T4526                                                                                 |
| [`checkCircularValidation()`](/packages/core/api/functions#checkcircularvalidation)                                | function | Check for circular validation (self-approval prevention). Prevents: creator v...                                     |
| [`allEpicChildrenVerified()`](/packages/core/api/functions#allepicchildrenverified)                                | function | Check if all children of an epic have verification.passed = true.  T4526                                             |
| [`allSiblingsVerified()`](/packages/core/api/functions#allsiblingsverified)                                        | function | Check if all siblings of a task are verified.  T4526                                                                 |
| [`getProjectInfo()`](/packages/core/api/functions#getprojectinfo)                                                  | function | Read project-info.json and return a typed ProjectInfo.  Falls back gracefully...                                     |
| [`getProjectInfoSync()`](/packages/core/api/functions#getprojectinfosync)                                          | function | Synchronous variant for use in hot paths where async is not feasible. Returns...                                     |
| [`updateProjectName()`](/packages/core/api/functions#updateprojectname)                                            | function | Update the project name in project-info.json. Used by `cleo upgrade --name` a...                                     |
| [`generateAcFromDescription()`](/packages/core/api/functions#generateacfromdescription)                            | function | Generate 3 baseline acceptance criteria from a task description. Uses simple...                                      |
| [`backfillTasks()`](/packages/core/api/functions#backfilltasks)                                                    | function | Retroactively populate AC and verification metadata for tasks that lack them.                                        |
| [`ProtocolEnforcer`](/packages/core/api/functions#protocolenforcer)                                                | class    | Main protocol enforcement class                                                                                      |
| [`getHookCapableProviders()`](/packages/core/api/functions#gethookcapableproviders)                                | function | Get all providers that support a specific hook event                                                                 |
| [`getSharedHookEvents()`](/packages/core/api/functions#getsharedhookevents)                                        | function | Get hook events supported by all specified providers                                                                 |
| [`toNativeHookEvent()`](/packages/core/api/functions#tonativehookevent)                                            | function | Translate a canonical hook event to a provider-native event name.                                                    |
| [`toCanonicalHookEvent()`](/packages/core/api/functions#tocanonicalhookevent)                                      | function | Translate a provider-native event name back to its canonical equivalent.                                             |
| [`providerSupportsHookEvent()`](/packages/core/api/functions#providersupportshookevent)                            | function | Check if a provider supports a specific canonical hook event.                                                        |
| [`validateChainShape()`](/packages/core/api/functions#validatechainshape)                                          | function | Validate the topology/DAG of a chain shape.  Checks: - All link source/target...                                     |
| [`validateGateSatisfiability()`](/packages/core/api/functions#validategatesatisfiability)                          | function | Validate that all gates in a chain reference valid stages and gate names.  Ch...                                     |
| [`validateChain()`](/packages/core/api/functions#validatechain)                                                    | function | Validate a complete WarpChain definition.  Orchestrates shape validation and...                                      |
| [`addChain()`](/packages/core/api/functions#addchain)                                                              | function | Store a validated WarpChain definition.  Validates the chain before storing....                                      |
| [`showChain()`](/packages/core/api/functions#showchain)                                                            | function | Retrieve a WarpChain definition by ID.   T5403                                                                       |
| [`listChains()`](/packages/core/api/functions#listchains)                                                          | function | List all stored WarpChain definitions.   T5403                                                                       |
| [`findChains()`](/packages/core/api/functions#findchains)                                                          | function | Find WarpChain definitions by criteria.   T5403                                                                      |
| [`createInstance()`](/packages/core/api/functions#createinstance)                                                  | function | Create a chain instance binding a chain to an epic.   T5403                                                          |
| [`showInstance()`](/packages/core/api/functions#showinstance)                                                      | function | Retrieve a chain instance by ID.   T5403                                                                             |
| [`listInstanceGateResults()`](/packages/core/api/functions#listinstancegateresults)                                | function | Read persisted gate results for a chain instance.                                                                    |
| [`advanceInstance()`](/packages/core/api/functions#advanceinstance)                                                | function | Advance a chain instance to the next stage, recording gate results.   T5403                                          |
| [`validateResearchProtocol()`](/packages/core/api/functions#validateresearchprotocol)                              | function | T4499                                                                                                                |
| [`validateConsensusProtocol()`](/packages/core/api/functions#validateconsensusprotocol)                            | function | T4499                                                                                                                |
| [`validateSpecificationProtocol()`](/packages/core/api/functions#validatespecificationprotocol)                    | function | T4499                                                                                                                |
| [`validateDecompositionProtocol()`](/packages/core/api/functions#validatedecompositionprotocol)                    | function | T4499                                                                                                                |
| [`validateImplementationProtocol()`](/packages/core/api/functions#validateimplementationprotocol)                  | function | T4499                                                                                                                |
| [`validateContributionProtocol()`](/packages/core/api/functions#validatecontributionprotocol)                      | function | T4499                                                                                                                |
| [`validateReleaseProtocol()`](/packages/core/api/functions#validatereleaseprotocol)                                | function | T4499                                                                                                                |
| [`validateArtifactPublishProtocol()`](/packages/core/api/functions#validateartifactpublishprotocol)                | function | T4499                                                                                                                |
| [`validateProvenanceProtocol()`](/packages/core/api/functions#validateprovenanceprotocol)                          | function | T4499                                                                                                                |
| [`validateArchitectureDecisionProtocol()`](/packages/core/api/functions#validatearchitecturedecisionprotocol)      | function | Validate an Architecture Decision Record manifest entry.  Enforces the 8 MUST...                                     |
| [`validateValidationProtocol()`](/packages/core/api/functions#validatevalidationprotocol)                          | function | Validate a manifest entry against the validation stage protocol.  Enforces VA...                                     |
| [`validateTestingProtocol()`](/packages/core/api/functions#validatetestingprotocol)                                | function | Validate a manifest entry against the testing protocol.  This validator is \*\*...                                   |
| [`validateProtocol()`](/packages/core/api/functions#validateprotocol)                                              | function | Validate a manifest entry against a specific protocol. Throws CleoError with...                                      |
| [`buildDefaultChain()`](/packages/core/api/functions#builddefaultchain)                                            | function | Build the canonical 9-stage RCASD-IVTR+C WarpChain.  - Each PIPELINE\_STAGE be...                                    |
| [`buildDefaultTessera()`](/packages/core/api/functions#builddefaulttessera)                                        | function | Build the default RCASD Tessera template.  Wraps buildDefaultChain() with tem...                                     |
| [`instantiateTessera()`](/packages/core/api/functions#instantiatetessera)                                          | function | Instantiate a Tessera template into a concrete WarpChainInstance.  Steps: 1....                                      |
| [`listTesseraTemplates()`](/packages/core/api/functions#listtesseratemplates)                                      | function | List all registered Tessera templates.   T5409                                                                       |
| [`showTessera()`](/packages/core/api/functions#showtessera)                                                        | function | Find a Tessera template by ID.   T5409                                                                               |
| [`runBrainMaintenance()`](/packages/core/api/functions#runbrainmaintenance)                                        | function | Run a combined brain maintenance pass: decay, consolidation, and embeddings....                                      |
| [`migrateClaudeMem()`](/packages/core/api/functions#migrateclaudemem)                                              | function | Migrate observations from claude-mem's SQLite database into CLEO brain.db.  R...                                     |
| [`reasonWhy()`](/packages/core/api/functions#reasonwhy)                                                            | function | Build a causal trace for why a task is blocked.  Walks upstream through...                                           |
| [`reasonSimilar()`](/packages/core/api/functions#reasonsimilar)                                                    | function | Find entries similar to a given brain.db entry.  1. Loads the source entry's...                                      |
| [`memoryShow()`](/packages/core/api/functions#memoryshow)                                                          | function | Look up a brain.db entry by ID.                                                                                      |
| [`memoryBrainStats()`](/packages/core/api/functions#memorybrainstats)                                              | function | Aggregate stats from brain.db across all tables.                                                                     |
| [`memoryDecisionFind()`](/packages/core/api/functions#memorydecisionfind)                                          | function | Search decisions in brain.db.                                                                                        |
| [`memoryDecisionStore()`](/packages/core/api/functions#memorydecisionstore)                                        | function | Store a decision to brain.db.                                                                                        |
| [`memoryFind()`](/packages/core/api/functions#memoryfind)                                                          | function | Token-efficient brain search returning compact results.                                                              |
| [`memoryTimeline()`](/packages/core/api/functions#memorytimeline)                                                  | function | Chronological context around a brain entry anchor.                                                                   |
| [`memoryFetch()`](/packages/core/api/functions#memoryfetch)                                                        | function | Batch fetch brain entries by IDs.                                                                                    |
| [`memoryObserve()`](/packages/core/api/functions#memoryobserve)                                                    | function | Save an observation to brain.db.                                                                                     |
| [`memoryPatternStore()`](/packages/core/api/functions#memorypatternstore)                                          | function | Store a pattern to BRAIN memory.                                                                                     |
| [`memoryPatternFind()`](/packages/core/api/functions#memorypatternfind)                                            | function | Search patterns in BRAIN memory.                                                                                     |
| [`memoryPatternStats()`](/packages/core/api/functions#memorypatternstats)                                          | function | Get pattern memory statistics.                                                                                       |
| [`memoryLearningStore()`](/packages/core/api/functions#memorylearningstore)                                        | function | Store a learning to BRAIN memory.                                                                                    |
| [`memoryLearningFind()`](/packages/core/api/functions#memorylearningfind)                                          | function | Search learnings in BRAIN memory.                                                                                    |
| [`memoryLearningStats()`](/packages/core/api/functions#memorylearningstats)                                        | function | Get learning memory statistics.                                                                                      |
| [`memoryContradictions()`](/packages/core/api/functions#memorycontradictions)                                      | function | Find contradictory entries in brain.db.                                                                              |
| [`memorySuperseded()`](/packages/core/api/functions#memorysuperseded)                                              | function | Find superseded entries in brain.db.  Identifies entries that have been super...                                     |
| [`memoryLink()`](/packages/core/api/functions#memorylink)                                                          | function | Link a brain entry to a task.                                                                                        |
| [`memoryUnlink()`](/packages/core/api/functions#memoryunlink)                                                      | function | Remove a link between a brain entry and a task.                                                                      |
| [`memoryGraphAdd()`](/packages/core/api/functions#memorygraphadd)                                                  | function | Add a node or edge to the PageIndex graph.                                                                           |
| [`memoryGraphShow()`](/packages/core/api/functions#memorygraphshow)                                                | function | Get a node and its edges from the PageIndex graph.                                                                   |
| [`memoryGraphNeighbors()`](/packages/core/api/functions#memorygraphneighbors)                                      | function | Get neighbor nodes from the PageIndex graph.                                                                         |
| [`memoryReasonWhy()`](/packages/core/api/functions#memoryreasonwhy)                                                | function | Causal trace through task dependency chains.                                                                         |
| [`memoryReasonSimilar()`](/packages/core/api/functions#memoryreasonsimilar)                                        | function | Find semantically similar entries.                                                                                   |
| [`memorySearchHybrid()`](/packages/core/api/functions#memorysearchhybrid)                                          | function | Hybrid search across FTS5, vector, and graph.                                                                        |
| [`memoryGraphRemove()`](/packages/core/api/functions#memorygraphremove)                                            | function | Remove a node or edge from the PageIndex graph.                                                                      |
| [`pipelineManifestShow()`](/packages/core/api/functions#pipelinemanifestshow)                                      | function | pipeline.manifest.show - Get manifest entry details by ID                                                            |
| [`pipelineManifestList()`](/packages/core/api/functions#pipelinemanifestlist)                                      | function | pipeline.manifest.list - List manifest entries with filters                                                          |
| [`pipelineManifestFind()`](/packages/core/api/functions#pipelinemanifestfind)                                      | function | pipeline.manifest.find - Find manifest entries by text (LIKE search on conten...                                     |
| [`pipelineManifestPending()`](/packages/core/api/functions#pipelinemanifestpending)                                | function | pipeline.manifest.pending - Get pending manifest items                                                               |
| [`pipelineManifestStats()`](/packages/core/api/functions#pipelinemanifeststats)                                    | function | pipeline.manifest.stats - Manifest statistics                                                                        |
| [`pipelineManifestRead()`](/packages/core/api/functions#pipelinemanifestread)                                      | function | pipeline.manifest.read - Read manifest entries with optional filter                                                  |
| [`pipelineManifestAppend()`](/packages/core/api/functions#pipelinemanifestappend)                                  | function | pipeline.manifest.append - Append entry to pipeline\_manifest table                                                  |
| [`pipelineManifestArchive()`](/packages/core/api/functions#pipelinemanifestarchive)                                | function | pipeline.manifest.archive - Archive old manifest entries by date                                                     |
| [`pipelineManifestCompact()`](/packages/core/api/functions#pipelinemanifestcompact)                                | function | pipeline.manifest.compact - Dedup by contentHash (keep newest by createdAt)                                          |
| [`pipelineManifestValidate()`](/packages/core/api/functions#pipelinemanifestvalidate)                              | function | pipeline.manifest.validate - Validate manifest entries for a task                                                    |
| [`pipelineManifestContradictions()`](/packages/core/api/functions#pipelinemanifestcontradictions)                  | function | pipeline.manifest.contradictions - Find entries with overlapping topics but c...                                     |
| [`pipelineManifestSuperseded()`](/packages/core/api/functions#pipelinemanifestsuperseded)                          | function | pipeline.manifest.superseded - Identify entries replaced by newer work on sam...                                     |
| [`pipelineManifestLink()`](/packages/core/api/functions#pipelinemanifestlink)                                      | function | pipeline.manifest.link - Link manifest entry to a task                                                               |
| [`readManifestEntries()`](/packages/core/api/functions#readmanifestentries)                                        | function | Read all manifest entries from the pipeline\_manifest table. Replaces readMani...                                    |
| [`filterEntries()`](/packages/core/api/functions#filterentries)                                                    | function | Filter manifest entries by criteria (alias for backward compatibility).                                              |
| [`distillManifestEntry()`](/packages/core/api/functions#distillmanifestentry)                                      | function | Distill a manifest entry to brain.db observation (Phase 3, pending).                                                 |
| [`migrateManifestJsonlToSqlite()`](/packages/core/api/functions#migratemanifestjsonltosqlite)                      | function | Migrate existing legacy flat-file entries into the pipeline\_manifest table...                                       |
| [`resolveProviderFromModelIndex()`](/packages/core/api/functions#resolveproviderfrommodelindex)                    | function |                                                                                                                      |
| [`resolveProviderFromModelRegistry()`](/packages/core/api/functions#resolveproviderfrommodelregistry)              | function |                                                                                                                      |
| [`resetModelsDevCache()`](/packages/core/api/functions#resetmodelsdevcache)                                        | function |                                                                                                                      |
| [`measureTokenExchange()`](/packages/core/api/functions#measuretokenexchange)                                      | function |                                                                                                                      |
| [`recordTokenExchange()`](/packages/core/api/functions#recordtokenexchange)                                        | function |                                                                                                                      |
| [`showTokenUsage()`](/packages/core/api/functions#showtokenusage)                                                  | function |                                                                                                                      |
| [`listTokenUsage()`](/packages/core/api/functions#listtokenusage)                                                  | function |                                                                                                                      |
| [`summarizeTokenUsage()`](/packages/core/api/functions#summarizetokenusage)                                        | function |                                                                                                                      |
| [`deleteTokenUsage()`](/packages/core/api/functions#deletetokenusage)                                              | function |                                                                                                                      |
| [`clearTokenUsage()`](/packages/core/api/functions#cleartokenusage)                                                | function |                                                                                                                      |
| [`autoRecordDispatchTokenUsage()`](/packages/core/api/functions#autorecorddispatchtokenusage)                      | function |                                                                                                                      |
| [`getLatestTokenRecord()`](/packages/core/api/functions#getlatesttokenrecord)                                      | function |                                                                                                                      |
| [`getTokenUsageAggregateSql()`](/packages/core/api/functions#gettokenusageaggregatesql)                            | function |                                                                                                                      |
| [`startParallelExecution()`](/packages/core/api/functions#startparallelexecution)                                  | function | Start parallel execution for a wave.                                                                                 |
| [`endParallelExecution()`](/packages/core/api/functions#endparallelexecution)                                      | function | End parallel execution for a wave.                                                                                   |
| [`getParallelStatus()`](/packages/core/api/functions#getparallelstatus)                                            | function | Get current parallel execution state.                                                                                |
| [`listSkills()`](/packages/core/api/functions#listskills)                                                          | function | List available skills from canonical and project-local directories.                                                  |
| [`getSkillContent()`](/packages/core/api/functions#getskillcontent)                                                | function | Read skill content for injection into agent context. Checks project-local ski...                                     |
| [`getUnblockOpportunities()`](/packages/core/api/functions#getunblockopportunities)                                | function | Analyze dependency graph for unblocking opportunities.                                                               |
| [`validateSpawnReadiness()`](/packages/core/api/functions#validatespawnreadiness)                                  | function | Validate spawn readiness for a task.                                                                                 |
| [`injectContext()`](/packages/core/api/functions#injectcontext)                                                    | function | Read protocol injection content for a given protocol type. Core logic for ses...                                     |
| [`generateSessionId()`](/packages/core/api/functions#generatesessionid)                                            | function | Generate a canonical session ID.  Format: ses\_YYYYMMDDHHmmss\_6hex Example: se...                                   |
| [`isValidSessionId()`](/packages/core/api/functions#isvalidsessionid)                                              | function | Check if a string is a valid session ID (any format).                                                                |
| [`isCanonicalSessionId()`](/packages/core/api/functions#iscanonicalsessionid)                                      | function | Check if a session ID uses the canonical format.                                                                     |
| [`extractSessionTimestamp()`](/packages/core/api/functions#extractsessiontimestamp)                                | function | Extract an approximate timestamp from any valid session ID format. Returns nu...                                     |
| [`createSession()`](/packages/core/api/functions#createsession)                                                    | function | Create a new session.                                                                                                |
| [`getSession()`](/packages/core/api/functions#getsession)                                                          | function | Get a session by ID.                                                                                                 |
| [`updateSession()`](/packages/core/api/functions#updatesession)                                                    | function | Update a session.                                                                                                    |
| [`listSessions()`](/packages/core/api/functions#listsessions)                                                      | function | List sessions with optional filters.                                                                                 |
| [`endSession()`](/packages/core/api/functions#endsession)                                                          | function | End a session.                                                                                                       |
| [`startTask()`](/packages/core/api/functions#starttask)                                                            | function | Start working on a task within a session.                                                                            |
| [`getCurrentTask()`](/packages/core/api/functions#getcurrenttask)                                                  | function | Get current task for a session.                                                                                      |
| [`stopTask()`](/packages/core/api/functions#stoptask)                                                              | function | Stop working on the current task for a session.                                                                      |
| [`workHistory()`](/packages/core/api/functions#workhistory)                                                        | function | Get work history for a session.                                                                                      |
| [`gcSessions()`](/packages/core/api/functions#gcsessions)                                                          | function | Garbage collect old sessions (mark ended sessions as orphaned after threshold).                                      |
| [`getActiveSession()`](/packages/core/api/functions#getactivesession)                                              | function | Get the currently active session (if any).                                                                           |
| [`suggestRelated()`](/packages/core/api/functions#suggestrelated)                                                  | function | Suggest related tasks based on shared attributes.                                                                    |
| [`addRelation()`](/packages/core/api/functions#addrelation)                                                        | function | Add a relation between tasks.                                                                                        |
| [`discoverRelated()`](/packages/core/api/functions#discoverrelated)                                                | function | Discover related tasks using various methods.                                                                        |
| [`listRelations()`](/packages/core/api/functions#listrelations)                                                    | function | List existing relations for a task.                                                                                  |
| [`canCancel()`](/packages/core/api/functions#cancancel)                                                            | function | Check if a task can be cancelled.                                                                                    |
| [`cancelTask()`](/packages/core/api/functions#canceltask)                                                          | function | Cancel a task in the tasks array (returns updated array). Does NOT handle chi...                                     |
| [`cancelMultiple()`](/packages/core/api/functions#cancelmultiple)                                                  | function | Batch cancel multiple tasks.                                                                                         |
| [`coreTaskNext()`](/packages/core/api/functions#coretasknext)                                                      | function | Suggest next task to work on based on priority, phase, age, and deps.                                                |
| [`coreTaskBlockers()`](/packages/core/api/functions#coretaskblockers)                                              | function | Show blocked tasks and analyze blocking chains.                                                                      |
| [`coreTaskTree()`](/packages/core/api/functions#coretasktree)                                                      | function | Build hierarchy tree for tasks.                                                                                      |
| [`coreTaskDeps()`](/packages/core/api/functions#coretaskdeps)                                                      | function | Show dependencies for a task.                                                                                        |
| [`coreTaskRelates()`](/packages/core/api/functions#coretaskrelates)                                                | function | Show task relations.                                                                                                 |
| [`coreTaskRelatesAdd()`](/packages/core/api/functions#coretaskrelatesadd)                                          | function | Add a relation between two tasks.                                                                                    |
| [`coreTaskAnalyze()`](/packages/core/api/functions#coretaskanalyze)                                                | function | Analyze tasks for priority and leverage.                                                                             |
| [`coreTaskRestore()`](/packages/core/api/functions#coretaskrestore)                                                | function | Restore a cancelled task back to pending.                                                                            |
| [`coreTaskCancel()`](/packages/core/api/functions#coretaskcancel)                                                  | function | Cancel a task (sets status to 'cancelled', a soft terminal state). Use restor...                                     |
| [`coreTaskUnarchive()`](/packages/core/api/functions#coretaskunarchive)                                            | function | Move an archived task back to active tasks.                                                                          |
| [`coreTaskReorder()`](/packages/core/api/functions#coretaskreorder)                                                | function | Change task position within its sibling group.                                                                       |
| [`coreTaskReparent()`](/packages/core/api/functions#coretaskreparent)                                              | function | Move task under a different parent.                                                                                  |
| [`coreTaskPromote()`](/packages/core/api/functions#coretaskpromote)                                                | function | Promote a subtask to task or task to root.                                                                           |
| [`coreTaskReopen()`](/packages/core/api/functions#coretaskreopen)                                                  | function | Reopen a completed task.                                                                                             |
| [`coreTaskComplexityEstimate()`](/packages/core/api/functions#coretaskcomplexityestimate)                          | function | Deterministic complexity scoring from task metadata.                                                                 |
| [`coreTaskDepsOverview()`](/packages/core/api/functions#coretaskdepsoverview)                                      | function | Overview of all dependencies across the project.                                                                     |
| [`coreTaskDepsCycles()`](/packages/core/api/functions#coretaskdepscycles)                                          | function | Detect circular dependencies across the project.                                                                     |
| [`coreTaskDepends()`](/packages/core/api/functions#coretaskdepends)                                                | function | List dependencies for a task in a given direction.                                                                   |
| [`coreTaskStats()`](/packages/core/api/functions#coretaskstats)                                                    | function | Compute task statistics.                                                                                             |
| [`coreTaskExport()`](/packages/core/api/functions#coretaskexport)                                                  | function | Export tasks as JSON or CSV.                                                                                         |
| [`coreTaskHistory()`](/packages/core/api/functions#coretaskhistory)                                                | function | Get task history from the audit log.                                                                                 |
| [`coreTaskLint()`](/packages/core/api/functions#coretasklint)                                                      | function | Lint tasks for common issues.                                                                                        |
| [`coreTaskBatchValidate()`](/packages/core/api/functions#coretaskbatchvalidate)                                    | function | Validate multiple tasks at once.                                                                                     |
| [`coreTaskImport()`](/packages/core/api/functions#coretaskimport)                                                  | function | Import tasks from a JSON source string.                                                                              |
| [`analyzeTaskPriority()`](/packages/core/api/functions#analyzetaskpriority)                                        | function | Analyze task priority with leverage scoring.                                                                         |
| [`listLabels()`](/packages/core/api/functions#listlabels)                                                          | function | List all labels with task counts.                                                                                    |
| [`showLabelTasks()`](/packages/core/api/functions#showlabeltasks)                                                  | function | Show tasks with a specific label.                                                                                    |
| [`getLabelStats()`](/packages/core/api/functions#getlabelstats)                                                    | function | Get detailed label statistics.                                                                                       |
| [`createStoreProvider()`](/packages/core/api/functions#createstoreprovider)                                        | function | Create a store provider. Always creates SQLite provider (ADR-006).  T4647                                            |
| [`getStore()`](/packages/core/api/functions#getstore)                                                              | function | Get a StoreProvider instance for the given working directory. Convenience wra...                                     |
| [`countJsonRecords()`](/packages/core/api/functions#countjsonrecords)                                              | function | Count records in JSON source files.                                                                                  |
| [`migrateJsonToSqliteAtomic()`](/packages/core/api/functions#migratejsontosqliteatomic)                            | function | Migrate JSON data to SQLite with atomic rename pattern. Writes to a temporary...                                     |
| [`migrateJsonToSqlite()`](/packages/core/api/functions#migratejsontosqlite)                                        | function |                                                                                                                      |
| [`exportToJson()`](/packages/core/api/functions#exporttojson)                                                      | function | Export SQLite data back to JSON format (for inspection or emergency recovery).                                       |
| [`repairMissingSizes()`](/packages/core/api/functions#repairmissingsizes)                                          | function | Set size='medium' on tasks that have no size value. Operates directly on the...                                      |
| [`repairMissingCompletedAt()`](/packages/core/api/functions#repairmissingcompletedat)                              | function | Set completedAt=now() on done/cancelled tasks that are missing a completedAt...                                      |
| [`repairMissingColumns()`](/packages/core/api/functions#repairmissingcolumns)                                      | function | Detect and add missing required columns on the tasks table. Uses PRAGMA table...                                     |
| [`runAllRepairs()`](/packages/core/api/functions#runallrepairs)                                                    | function | Run all repair functions. Returns all actions taken (or previewed in dry-run...                                      |
| [`runUpgrade()`](/packages/core/api/functions#runupgrade)                                                          | function | Run a full upgrade pass on the project .cleo/ directory.  Steps:   1. Pre-fli...                                     |
| [`diagnoseUpgrade()`](/packages/core/api/functions#diagnoseupgrade)                                                | function | Deep diagnostic inspection of schema and migration state.  Unlike bare...                                            |
| [`VerificationGate`](/packages/core/api/functions#verificationgate)                                                | class    | Main Verification Gate class  Orchestrates 4-layer validation and determines...                                      |
| [`createVerificationGate()`](/packages/core/api/functions#createverificationgate)                                  | function | Factory function for creating verification gates                                                                     |
| [`WorkflowGateTracker`](/packages/core/api/functions#workflowgatetracker)                                          | class    | WorkflowGateTracker  Tracks the status of all 6 workflow verification gates f...                                     |
| [`isValidWorkflowGateName()`](/packages/core/api/functions#isvalidworkflowgatename)                                | function | Validate a workflow gate name string                                                                                 |
| [`getWorkflowGateDefinition()`](/packages/core/api/functions#getworkflowgatedefinition)                            | function | Get the definition for a workflow gate                                                                               |
| [`validateLayer1Schema()`](/packages/core/api/functions#validatelayer1schema)                                      | function | Layer 1: Schema Validation  Validates operation parameters against JSON Schem...                                     |
| [`validateLayer2Semantic()`](/packages/core/api/functions#validatelayer2semantic)                                  | function | Layer 2: Semantic Validation  Validates business rules and logical constraints.                                      |
| [`validateLayer3Referential()`](/packages/core/api/functions#validatelayer3referential)                            | function | Layer 3: Referential Validation  Validates cross-entity references and relati...                                     |
| [`validateLayer4Protocol()`](/packages/core/api/functions#validatelayer4protocol)                                  | function | Layer 4: Protocol Validation  Validates RCASD-IVTR+C lifecycle compliance and...                                     |
| [`isFieldRequired()`](/packages/core/api/functions#isfieldrequired)                                                | function | Helper to check if a field is required for an operation                                                              |
| [`validateWorkflowGateName()`](/packages/core/api/functions#validateworkflowgatename)                              | function | Validate a workflow gate name   T3141                                                                                |
| [`validateWorkflowGateStatus()`](/packages/core/api/functions#validateworkflowgatestatus)                          | function | Validate a workflow gate status value per Section 7.3   T3141                                                        |
| [`validateWorkflowGateUpdate()`](/packages/core/api/functions#validateworkflowgateupdate)                          | function | Validate a gate update operation.   T3141                                                                            |
| [`buildMcpInputSchema()`](/packages/core/api/functions#buildmcpinputschema)                                        | function | Build a JSON Schema `input_schema` object from an `OperationDef`.  Algorithm:...                                     |
| [`buildCommanderArgs()`](/packages/core/api/functions#buildcommanderargs)                                          | function | Split `OperationDef.params` into positional arguments and option flags, suita...                                     |
| [`buildCommanderOptionString()`](/packages/core/api/functions#buildcommanderoptionstring)                          | function | Build the Commander option string for a single non-positional ParamDef.  Exam...                                     |
| [`camelToKebab()`](/packages/core/api/functions#cameltokebab)                                                      | function | Convert a camelCase string to kebab-case. e.g. 'includeArchive' → 'include-ar...                                     |
| [`validateRequiredParamsDef()`](/packages/core/api/functions#validaterequiredparamsdef)                            | function | Validates that all required parameters are present in the request. Returns an...                                     |
| [`findManifestEntry()`](/packages/core/api/functions#findmanifestentry)                                            | function | Locate the manifest line for a given task ID, reading from the end of the fil...                                     |
| [`loadManifestEntryByTaskId()`](/packages/core/api/functions#loadmanifestentrybytaskid)                            | function | Load a manifest entry by task ID from the canonical manifest file.   T260                                            |
| [`loadManifestEntryFromFile()`](/packages/core/api/functions#loadmanifestentryfromfile)                            | function | Load a manifest entry from an arbitrary JSON file (used by the `manifest` dis...                                     |
| [`throwIfStrictFailed()`](/packages/core/api/functions#throwifstrictfailed)                                        | function | Throw a CleoError with the protocol's canonical exit code when strict validat...                                     |
| [`validateArchitectureDecisionTask()`](/packages/core/api/functions#validatearchitecturedecisiontask)              | function | Validate architecture-decision protocol for a task.                                                                  |
| [`checkArchitectureDecisionManifest()`](/packages/core/api/functions#checkarchitecturedecisionmanifest)            | function | Validate architecture-decision protocol from a manifest file.                                                        |
| [`validateArtifactPublishTask()`](/packages/core/api/functions#validateartifactpublishtask)                        | function | Validate artifact-publish protocol for a task.                                                                       |
| [`checkArtifactPublishManifest()`](/packages/core/api/functions#checkartifactpublishmanifest)                      | function | Validate artifact-publish protocol from a manifest file.                                                             |
| [`validateConsensusTask()`](/packages/core/api/functions#validateconsensustask)                                    | function | Validate consensus protocol for a task.                                                                              |
| [`checkConsensusManifest()`](/packages/core/api/functions#checkconsensusmanifest)                                  | function | Validate consensus protocol from a manifest file.                                                                    |
| [`validateContributionTask()`](/packages/core/api/functions#validatecontributiontask)                              | function | Validate contribution protocol for a task.                                                                           |
| [`checkContributionManifest()`](/packages/core/api/functions#checkcontributionmanifest)                            | function | Validate contribution protocol from a manifest file.                                                                 |
| [`validateDecompositionTask()`](/packages/core/api/functions#validatedecompositiontask)                            | function | Validate decomposition protocol for a task.                                                                          |
| [`checkDecompositionManifest()`](/packages/core/api/functions#checkdecompositionmanifest)                          | function | Validate decomposition protocol from a manifest file.                                                                |
| [`validateImplementationTask()`](/packages/core/api/functions#validateimplementationtask)                          | function | Validate implementation protocol for a task.                                                                         |
| [`checkImplementationManifest()`](/packages/core/api/functions#checkimplementationmanifest)                        | function | Validate implementation protocol from a manifest file.                                                               |
| [`validateProvenanceTask()`](/packages/core/api/functions#validateprovenancetask)                                  | function | Validate provenance protocol for a task.                                                                             |
| [`checkProvenanceManifest()`](/packages/core/api/functions#checkprovenancemanifest)                                | function | Validate provenance protocol from a manifest file.                                                                   |
| [`validateReleaseTask()`](/packages/core/api/functions#validatereleasetask)                                        | function | Validate release protocol for a task.                                                                                |
| [`checkReleaseManifest()`](/packages/core/api/functions#checkreleasemanifest)                                      | function | Validate release protocol from a manifest file.                                                                      |
| [`validateResearchTask()`](/packages/core/api/functions#validateresearchtask)                                      | function | Validate research protocol for a task.                                                                               |
| [`checkResearchManifest()`](/packages/core/api/functions#checkresearchmanifest)                                    | function | Validate research protocol from a manifest file.                                                                     |
| [`validateSpecificationTask()`](/packages/core/api/functions#validatespecificationtask)                            | function | Validate specification protocol for a task.                                                                          |
| [`checkSpecificationManifest()`](/packages/core/api/functions#checkspecificationmanifest)                          | function | Validate specification protocol from a manifest file.                                                                |
| [`validateTestingTask()`](/packages/core/api/functions#validatetestingtask)                                        | function | Validate testing protocol for a task.                                                                                |
| [`checkTestingManifest()`](/packages/core/api/functions#checktestingmanifest)                                      | function | Validate testing protocol from a manifest file.                                                                      |
| [`validateValidationTask()`](/packages/core/api/functions#validatevalidationtask)                                  | function | Validate validation-stage protocol for a task.                                                                       |
| [`checkValidationManifest()`](/packages/core/api/functions#checkvalidationmanifest)                                | function | Validate validation-stage protocol from a manifest file.                                                             |
| [`validateSchema()`](/packages/core/api/functions#validateschema)                                                  | function | Validate data against a CLEO schema                                                                                  |
| [`validateTask()`](/packages/core/api/functions#validatetask)                                                      | function | Validate a single task object against the drizzle-zod insert schema. Uses dri...                                     |
| [`clearSchemaCache()`](/packages/core/api/functions#clearschemacache)                                              | function | Clear the schema cache (useful for testing)                                                                          |
| [`coreValidateReport()`](/packages/core/api/functions#corevalidatereport)                                          | function | Run comprehensive validation report on tasks database — checks business rules...                                     |
| [`coreValidateAndFix()`](/packages/core/api/functions#corevalidateandfix)                                          | function | Run validation report, then apply data repairs for fixable issues. Calls runA...                                     |
| [`coreValidateSchema()`](/packages/core/api/functions#corevalidateschema)                                          | function | Validate data against a schema type.  For SQLite-backed types (todo, archive,...                                     |
| [`coreValidateTask()`](/packages/core/api/functions#corevalidatetask)                                              | function | Validate a single task against anti-hallucination rules.  T4786                                                      |
| [`coreValidateProtocol()`](/packages/core/api/functions#corevalidateprotocol)                                      | function | Check basic protocol compliance for a task.  T4786                                                                   |
| [`coreValidateManifest()`](/packages/core/api/functions#corevalidatemanifest)                                      | function | Validate manifest JSONL entries for required fields.  T4786                                                          |
| [`coreValidateOutput()`](/packages/core/api/functions#corevalidateoutput)                                          | function | Validate an output file for required sections.  T4786                                                                |
| [`coreComplianceSummary()`](/packages/core/api/functions#corecompliancesummary)                                    | function | Get aggregated compliance metrics.  T4786                                                                            |
| [`coreComplianceViolations()`](/packages/core/api/functions#corecomplianceviolations)                              | function | List compliance violations.  T4786                                                                                   |
| [`coreComplianceRecord()`](/packages/core/api/functions#corecompliancerecord)                                      | function | Record a compliance check result to COMPLIANCE.jsonl.  T4786                                                         |
| [`coreTestStatus()`](/packages/core/api/functions#coreteststatus)                                                  | function | Check test suite availability.  T4786                                                                                |
| [`coreCoherenceCheck()`](/packages/core/api/functions#corecoherencecheck)                                          | function | Cross-validate task graph for consistency.  T4786                                                                    |
| [`coreTestRun()`](/packages/core/api/functions#coretestrun)                                                        | function | Execute test suite via subprocess.  T4786                                                                            |
| [`coreBatchValidate()`](/packages/core/api/functions#corebatchvalidate)                                            | function | Batch validate all tasks against schema and rules.  T4786                                                            |
| [`coreTestCoverage()`](/packages/core/api/functions#coretestcoverage)                                              | function | Get test coverage metrics.  T4786                                                                                    |
| [`buildBrainState()`](/packages/core/api/functions#buildbrainstate)                                                | function | Build brain state for agent bootstrapping.                                                                           |
| [`getCriticalPath()`](/packages/core/api/functions#getcriticalpath)                                                | function | Find the critical path (longest dependency chain) in the task graph.                                                 |
| [`resolveSkillPathsForProvider()`](/packages/core/api/functions#resolveskillpathsforprovider)                      | function | Get effective skill paths for a provider considering precedence                                                      |
| [`getProvidersWithPrecedence()`](/packages/core/api/functions#getproviderswithprecedence)                          | function | Get all providers that use a specific precedence mode                                                                |
| [`getSkillsMapWithPrecedence()`](/packages/core/api/functions#getskillsmapwithprecedence)                          | function | Build complete skills map with precedence information                                                                |
| [`determineInstallationTargets()`](/packages/core/api/functions#determineinstallationtargets)                      | function | Determine target installation paths for a skill                                                                      |
| [`supportsAgentsPath()`](/packages/core/api/functions#supportsagentspath)                                          | function | Check if provider supports agents path                                                                               |
| [`coreTaskPlan()`](/packages/core/api/functions#coretaskplan)                                                      | function | Build composite planning view.  T4914                                                                                |
| [`encrypt()`](/packages/core/api/functions#encrypt)                                                                | function | Encrypt a plaintext string using AES-256-GCM with a per-project key.  Output...                                      |
| [`decrypt()`](/packages/core/api/functions#decrypt)                                                                | function | Decrypt a base64-encoded ciphertext using AES-256-GCM with a per-project key.                                        |
| [`AgentRegistryAccessor`](/packages/core/api/functions#agentregistryaccessor)                                      | class    | signaldock.db implementation of the AgentRegistryAPI.                                                                |
| [`buildIndex()`](/packages/core/api/functions#buildindex)                                                          | function | Scan .cleo/rcasd/ and legacy .cleo/rcsd/ directories and build the RCASD inde...                                     |
| [`writeIndex()`](/packages/core/api/functions#writeindex)                                                          | function | Write RCASD-INDEX.json to disk.                                                                                      |
| [`readIndex()`](/packages/core/api/functions#readindex)                                                            | function | Read RCASD-INDEX.json from disk.                                                                                     |
| [`rebuildIndex()`](/packages/core/api/functions#rebuildindex)                                                      | function | Rebuild and write the index from current disk state.                                                                 |
| [`getTaskAnchor()`](/packages/core/api/functions#gettaskanchor)                                                    | function | Get task anchor by task ID.                                                                                          |
| [`findByStage()`](/packages/core/api/functions#findbystage)                                                        | function | Find tasks by pipeline stage.                                                                                        |
| [`findByStatus()`](/packages/core/api/functions#findbystatus)                                                      | function | Find tasks by status.                                                                                                |
| [`getIndexTotals()`](/packages/core/api/functions#getindextotals)                                                  | function | Get index summary statistics.                                                                                        |
| [`ApprovalManager`](/packages/core/api/functions#approvalmanager)                                                  | class    | Manages approval tokens for CANT workflow gates.  Tokens are stored in-memory...                                     |
| [`createScope()`](/packages/core/api/functions#createscope)                                                        | function | Creates a new root execution scope with initial variable bindings.                                                   |
| [`createChildScope()`](/packages/core/api/functions#createchildscope)                                              | function | Creates a child scope that inherits from a parent.  Lookups in the child scop...                                     |
| [`resolveVariable()`](/packages/core/api/functions#resolvevariable)                                                | function | Resolves a variable name in the scope chain.  Searches the current scope firs...                                     |
| [`setVariable()`](/packages/core/api/functions#setvariable)                                                        | function | Sets a variable in the current scope (does not affect parent scopes).                                                |
| [`resolveTemplate()`](/packages/core/api/functions#resolvetemplate)                                                | function | Resolves `{variable}` placeholders in a template string against the scope.  P...                                     |
| [`mergeStepOutput()`](/packages/core/api/functions#mergestepoutput)                                                | function | Merges step output into the current scope.  Binds `<stepName>.stdout`,...                                            |
| [`flattenScope()`](/packages/core/api/functions#flattenscope)                                                      | function | Collects all variable bindings visible from the given scope (including parent...                                     |
| [`DefaultDiscretionEvaluator`](/packages/core/api/functions#defaultdiscretionevaluator)                            | class    | Default discretion evaluator that always returns `true`.  This is a stub impl...                                     |
| [`MockDiscretionEvaluator`](/packages/core/api/functions#mockdiscretionevaluator)                                  | class    | Mock discretion evaluator with configurable responses for testing.  Responses...                                     |
| [`RateLimitedDiscretionEvaluator`](/packages/core/api/functions#ratelimiteddiscretionevaluator)                    | class    | Wraps a discretion evaluator with rate limiting.  Enforces a configurable max...                                     |
| [`executeParallel()`](/packages/core/api/functions#executeparallel)                                                | function | Executes parallel arms according to the specified join strategy.                                                     |
| [`WorkflowExecutor`](/packages/core/api/functions#workflowexecutor)                                                | class    | Executes CANT workflow definitions.  The executor processes each statement in...                                     |
| [`generateCodebaseMapSummary()`](/packages/core/api/functions#generatecodebasemapsummary)                          | function |                                                                                                                      |
| [`sequenceChains()`](/packages/core/api/functions#sequencechains)                                                  | function | Sequence two chains: connect A's exit points to B's entry point.  B's stage I...                                     |
| [`parallelChains()`](/packages/core/api/functions#parallelchains)                                                  | function | Compose chains in parallel with a common fork entry and join stage.  Creates...                                      |
| [`resolveEpicFromContent()`](/packages/core/api/functions#resolveepicfromcontent)                                  | function | Extract an epic/task ID from file content by searching for:   1....                                                  |
| [`resolveEpicFromFilename()`](/packages/core/api/functions#resolveepicfromfilename)                                | function | Extract an epic ID from a filename pattern like `T####-*` or `T####_*`.                                              |
| [`normalizeDirectoryNames()`](/packages/core/api/functions#normalizedirectorynames)                                | function | Rename suffixed epic directories (e.g. `T4881_install-channels` → `T4881`).                                          |
| [`migrateConsensusFiles()`](/packages/core/api/functions#migrateconsensusfiles)                                    | function | Migrate `.cleo/consensus/` files to appropriate epic's consensus/ subdirector...                                     |
| [`migrateContributionFiles()`](/packages/core/api/functions#migratecontributionfiles)                              | function | Migrate `.cleo/contributions/` files to appropriate epic's contributions/ sub...                                     |
| [`migrateLooseFiles()`](/packages/core/api/functions#migrateloosefiles)                                            | function | Migrate loose `T####_*.md` files from `.cleo/rcasd/` root into...                                                    |
| [`consolidateRcasd()`](/packages/core/api/functions#consolidatercasd)                                              | function | Consolidate all provenance files into the unified `.cleo/rcasd/{epicId}/` str...                                     |
| [`findResumablePipelines()`](/packages/core/api/functions#findresumablepipelines)                                  | function | Query active pipelines that can be resumed.  Searches the lifecycle\_pipelines...                                    |
| [`loadPipelineContext()`](/packages/core/api/functions#loadpipelinecontext)                                        | function | Load complete pipeline context for session resume.  Uses SQL JOINs to efficie...                                     |
| [`resumeStage()`](/packages/core/api/functions#resumestage)                                                        | function | Resume a specific stage in a pipeline.  Updates the stage status from 'blocke...                                     |
| [`autoResume()`](/packages/core/api/functions#autoresume)                                                          | function | Auto-detect where to resume across all active pipelines.  Finds the best cand...                                     |
| [`checkSessionResume()`](/packages/core/api/functions#checksessionresume)                                          | function | Check for resumable work on session start.  Integrates with session initializ...                                     |
| [`formatResumeSummary()`](/packages/core/api/functions#formatresumesummary)                                        | function | Get resume summary for display to user.  Formats resumable pipelines into a h...                                     |
| [`handleCompletedStage()`](/packages/core/api/functions#handlecompletedstage)                                      | function | Handle completed stage edge case.  If the current stage is completed, suggest...                                     |
| [`handleBlockedStage()`](/packages/core/api/functions#handleblockedstage)                                          | function | Handle blocked stage edge case.  Provides information about why a stage is bl...                                     |
| [`checkBlockedStageDetails()`](/packages/core/api/functions#checkblockedstagedetails)                              | function | Handle blocked stage edge case - async version with database lookup.                                                 |
| [`checkPrerequisites()`](/packages/core/api/functions#checkprerequisites)                                          | function | Check if prerequisites are met for a stage.  Validates that all prerequisite...                                      |
| [`validateTransition()`](/packages/core/api/functions#validatetransition)                                          | function | Validate a stage transition.  Comprehensive validation that checks both trans...                                     |
| [`executeTransition()`](/packages/core/api/functions#executetransition)                                            | function | Execute a state transition.  Applies the transition to the state machine cont...                                     |
| [`setStageStatus()`](/packages/core/api/functions#setstagestatus)                                                  | function | Set the status of a stage.  Updates stage status with validation of allowed s...                                     |
| [`getStageStatus()`](/packages/core/api/functions#getstagestatus)                                                  | function | Get the status of a stage.                                                                                           |
| [`isValidStatusTransition()`](/packages/core/api/functions#isvalidstatustransition)                                | function | Check if a status transition is valid.  State transitions:   not\_started → in...                                    |
| [`createInitialContext()`](/packages/core/api/functions#createinitialcontext)                                      | function | Create initial state machine context for a pipeline.                                                                 |
| [`getValidNextStages()`](/packages/core/api/functions#getvalidnextstages)                                          | function | Get stages that can be transitioned to from the current stage.                                                       |
| [`getCurrentStageState()`](/packages/core/api/functions#getcurrentstagestate)                                      | function | Get the current stage state.                                                                                         |
| [`isTerminalState()`](/packages/core/api/functions#isterminalstate)                                                | function | Check if the pipeline is in a terminal state.                                                                        |
| [`isBlocked()`](/packages/core/api/functions#isblocked)                                                            | function | Check if the pipeline is blocked.                                                                                    |
| [`validateTransitions()`](/packages/core/api/functions#validatetransitions)                                        | function | Validate multiple transitions.                                                                                       |
| [`canSkipStage()`](/packages/core/api/functions#canskipstage)                                                      | function | Check if a stage can be skipped.                                                                                     |
| [`skipStage()`](/packages/core/api/functions#skipstage)                                                            | function | Skip a stage with validation.                                                                                        |
| [`EmbeddingQueue`](/packages/core/api/functions#embeddingqueue)                                                    | class    | Singleton embedding queue.  Batches embedding requests and processes them via...                                     |
| [`getEmbeddingQueue()`](/packages/core/api/functions#getembeddingqueue)                                            | function | Get or create the shared EmbeddingQueue singleton.  Registers a process...                                           |
| [`resetEmbeddingQueue()`](/packages/core/api/functions#resetembeddingqueue)                                        | function | Reset the singleton (for testing only). Shuts down the existing queue before...                                      |
| [`getContextStatusFromPercentage()`](/packages/core/api/functions#getcontextstatusfrompercentage)                  | function | Determine status from percentage.                                                                                    |
| [`processContextInput()`](/packages/core/api/functions#processcontextinput)                                        | function | Process context window input and write state file. Returns the status line st...                                     |
| [`isHITLEnabled()`](/packages/core/api/functions#ishitlenabled)                                                    | function | Check if HITL warnings are enabled.                                                                                  |
| [`generateHITLWarnings()`](/packages/core/api/functions#generatehitlwarnings)                                      | function | Generate HITL warnings based on lock state.                                                                          |
| [`getHighestLevel()`](/packages/core/api/functions#gethighestlevel)                                                | function | Get highest warning level from warnings.                                                                             |
| [`getConcurrencyJson()`](/packages/core/api/functions#getconcurrencyjson)                                          | function | Get concurrency data for analyze JSON output.                                                                        |
| [`checkStatuslineIntegration()`](/packages/core/api/functions#checkstatuslineintegration)                          | function | Check if statusline integration is configured. Returns the current integratio...                                     |
| [`getStatuslineConfig()`](/packages/core/api/functions#getstatuslineconfig)                                        | function | Get the statusline setup command for Claude Code settings.                                                           |
| [`getSetupInstructions()`](/packages/core/api/functions#getsetupinstructions)                                      | function | Get human-readable setup instructions.                                                                               |
| [`getPreferredChannel()`](/packages/core/api/functions#getpreferredchannel)                                        | function | Look up the preferred channel for a given domain + operation.  Reads from the...                                     |
| [`getRoutingForDomain()`](/packages/core/api/functions#getroutingfordomain)                                        | function | Get routing entries for a specific domain.  Derives entries from the capabili...                                     |
| [`getOperationsByChannel()`](/packages/core/api/functions#getoperationsbychannel)                                  | function | Get all operations that prefer a specific channel.  Derives entries from the...                                      |
| [`generateMemoryProtocol()`](/packages/core/api/functions#generatememoryprotocol)                                  | function | Generate dynamic memory protocol instructions based on provider capabilities.                                        |
| [`generateRoutingGuide()`](/packages/core/api/functions#generateroutingguide)                                      | function | Generate a dynamic routing guide based on operation preferences.                                                     |
| [`generateDynamicSkillContent()`](/packages/core/api/functions#generatedynamicskillcontent)                        | function | Generate complete dynamic skill content for the current provider.                                                    |
| [`TaskCache`](/packages/core/api/functions#taskcache)                                                              | class    | In-memory cache for task indices with checksum-based staleness detection.                                            |
| [`extractPackageMeta()`](/packages/core/api/functions#extractpackagemeta)                                          | function | Extract package metadata from an export file.  T4552                                                                 |
| [`logImportStart()`](/packages/core/api/functions#logimportstart)                                                  | function | Log import operation start with package metadata.  T4552                                                             |
| [`logImportSuccess()`](/packages/core/api/functions#logimportsuccess)                                              | function | Log import operation completion with full metadata.  T4552                                                           |
| [`logImportError()`](/packages/core/api/functions#logimporterror)                                                  | function | Log import operation error with diagnostic details.  T4552                                                           |
| [`logImportConflict()`](/packages/core/api/functions#logimportconflict)                                            | function | Log import conflict detection and resolution.  T4552                                                                 |
| [`topologicalSortTasks()`](/packages/core/api/functions#topologicalsorttasks)                                      | function | Topological sort for task import order using Kahn's algorithm.  Ensures tasks...                                     |
| [`detectCycles()`](/packages/core/api/functions#detectcycles)                                                      | function | Detect cycles in task dependency graph. Returns true if no cycles, false if c...                                     |
| [`findActivePipelinesWithStagesAndTasks()`](/packages/core/api/functions#findactivepipelineswithstagesandtasks)    | function | Find active pipelines joined with their stages and tasks. Optionally filters...                                      |
| [`findPipelineWithCurrentStageAndTask()`](/packages/core/api/functions#findpipelinewithcurrentstageandtask)        | function | Find a pipeline with its current stage and task by taskId. Matches stages whe...                                     |
| [`findPipelineWithStage()`](/packages/core/api/functions#findpipelinewithstage)                                    | function | Find a pipeline and a specific stage by taskId and stageName.                                                        |
| [`updatePipelineCurrentStage()`](/packages/core/api/functions#updatepipelinecurrentstage)                          | function | Update pipeline's currentStageId.                                                                                    |
| [`getStagesByPipelineId()`](/packages/core/api/functions#getstagesbypipelineid)                                    | function | Get all stages for a pipeline, ordered by sequence.                                                                  |
| [`activateStage()`](/packages/core/api/functions#activatestage)                                                    | function | Update a stage's status to 'in\_progress' and clear block fields.                                                    |
| [`findPipelineWithCurrentStage()`](/packages/core/api/functions#findpipelinewithcurrentstage)                      | function | Find pipeline with current stage (no task join) by taskId. Used by checkBlock...                                     |
| [`getGateResultsByStageId()`](/packages/core/api/functions#getgateresultsbystageid)                                | function | Get gate results for a stage, ordered by checkedAt descending.                                                       |
| [`getGateResultsByStageIdUnordered()`](/packages/core/api/functions#getgateresultsbystageidunordered)              | function | Get gate results for a stage without ordering (for simple checks).                                                   |
| [`getEvidenceByStageId()`](/packages/core/api/functions#getevidencebystageid)                                      | function | Get evidence for a stage, ordered by recordedAt descending.                                                          |
| [`getRecentTransitions()`](/packages/core/api/functions#getrecenttransitions)                                      | function | Get recent transitions for a pipeline, ordered by createdAt descending.                                              |
| [`insertTransition()`](/packages/core/api/functions#inserttransition)                                              | function | Insert a new transition record.                                                                                      |
| [`checkAtomicity()`](/packages/core/api/functions#checkatomicity)                                                  | function | Check task atomicity using 6-point heuristic test. Default threshold: 4 (pass...                                     |
| [`extractTaskRefs()`](/packages/core/api/functions#extracttaskrefs)                                                | function | Extract task IDs from text content. Scans for patterns like T1234, T001, T42...                                      |
| [`createRelatesEntries()`](/packages/core/api/functions#createrelatesentries)                                      | function | Create relates entries from extracted task IDs.                                                                      |
| [`mergeRelatesArrays()`](/packages/core/api/functions#mergerelatesarrays)                                          | function | Merge new relates entries with existing ones. Existing entries take precedenc...                                     |
| [`validateRelatesRefs()`](/packages/core/api/functions#validaterelatesrefs)                                        | function | Validate that referenced task IDs exist. Returns array of invalid (non-existe...                                     |
| [`extractAndCreateRelates()`](/packages/core/api/functions#extractandcreaterelates)                                | function | Convenience: extract task refs from text and create relates entries.                                                 |
| [`calculateAffectedTasks()`](/packages/core/api/functions#calculateaffectedtasks)                                  | function | Calculate which tasks would be affected by a delete operation.                                                       |
| [`calculateImpact()`](/packages/core/api/functions#calculateimpact)                                                | function | Calculate impact of deletion.                                                                                        |
| [`generateWarnings()`](/packages/core/api/functions#generatewarnings)                                              | function | Generate warnings based on impact analysis.                                                                          |
| [`previewDelete()`](/packages/core/api/functions#previewdelete)                                                    | function | Main preview function - coordinates all preview calculations.                                                        |
| [`isValidStrategy()`](/packages/core/api/functions#isvalidstrategy)                                                | function | Validate a strategy name.                                                                                            |
| [`handleChildren()`](/packages/core/api/functions#handlechildren)                                                  | function | Handle children using the specified strategy. Returns the modified tasks arra...                                     |
| [`GraphCache`](/packages/core/api/functions#graphcache)                                                            | class    | Graph cache for expensive dependency calculations. Automatically invalidates...                                      |
| [`discoverByLabels()`](/packages/core/api/functions#discoverbylabels)                                              | function | Discover related tasks by shared labels.                                                                             |
| [`discoverByDescription()`](/packages/core/api/functions#discoverbydescription)                                    | function | Discover related tasks by description similarity (keyword-based Jaccard).                                            |
| [`discoverByFiles()`](/packages/core/api/functions#discoverbyfiles)                                                | function | Discover related tasks by shared files.                                                                              |
| [`discoverByHierarchy()`](/packages/core/api/functions#discoverbyhierarchy)                                        | function | Discover related tasks by hierarchical proximity (siblings and cousins).                                             |
| [`discoverRelatedTasks()`](/packages/core/api/functions#discoverrelatedtasks)                                      | function | Discover related tasks using all methods combined.                                                                   |
| [`suggestRelates()`](/packages/core/api/functions#suggestrelates)                                                  | function | Suggest relates entries filtered by threshold.                                                                       |
| [`getCurrentPhase()`](/packages/core/api/functions#getcurrentphase)                                                | function | Get the current active phase from project metadata.                                                                  |
| [`getTasksByPhase()`](/packages/core/api/functions#gettasksbyphase)                                                | function | Get tasks belonging to a specific phase.                                                                             |
| [`calculatePhaseProgress()`](/packages/core/api/functions#calculatephaseprogress)                                  | function | Calculate progress for a phase.                                                                                      |
| [`getAllPhaseProgress()`](/packages/core/api/functions#getallphaseprogress)                                        | function | Get progress for all phases.                                                                                         |
| [`validatePhaseTransition()`](/packages/core/api/functions#validatephasetransition)                                | function |                                                                                                                      |
| [`createPhaseTransition()`](/packages/core/api/functions#createphasetransition)                                    | function | Create a phase transition record.                                                                                    |
| [`applyPhaseTransition()`](/packages/core/api/functions#applyphasetransition)                                      | function | Apply a phase transition to project metadata. Returns updated project data.                                          |
| [`getNextPhase()`](/packages/core/api/functions#getnextphase)                                                      | function | Get the next phase in order.                                                                                         |
| [`allPhasesComplete()`](/packages/core/api/functions#allphasescomplete)                                            | function | Check if all phases are complete.                                                                                    |
| [`getSizeWeight()`](/packages/core/api/functions#getsizeweight)                                                    | function | Get weight for a task size.                                                                                          |
| [`getPriorityWeight()`](/packages/core/api/functions#getpriorityweight)                                            | function | Get weight for a task priority.                                                                                      |
| [`calculateTaskScore()`](/packages/core/api/functions#calculatetaskscore)                                          | function | Calculate a composite score for task ordering. Higher score = should be worke...                                     |
| [`sortByWeight()`](/packages/core/api/functions#sortbyweight)                                                      | function | Sort tasks by weighted score (highest first).                                                                        |
| [`calculateTotalEffort()`](/packages/core/api/functions#calculatetotaleffort)                                      | function | Calculate total weighted effort for a set of tasks.                                                                  |
| [`calculateWeightedProgress()`](/packages/core/api/functions#calculateweightedprogress)                            | function | Calculate completion percentage by weight.                                                                           |
| [`calculateRemainingEffort()`](/packages/core/api/functions#calculateremainingeffort)                              | function | Estimate remaining effort (weighted sum of non-complete tasks).                                                      |
| [`getLastActivity()`](/packages/core/api/functions#getlastactivity)                                                | function | Get the most recent activity timestamp for a task.                                                                   |
| [`classifyStaleness()`](/packages/core/api/functions#classifystaleness)                                            | function | Classify staleness level for a task.                                                                                 |
| [`getStalenessInfo()`](/packages/core/api/functions#getstalenessinfo)                                              | function | Get staleness info for a single task.                                                                                |
| [`findStaleTasks()`](/packages/core/api/functions#findstaletasks)                                                  | function | Find all stale tasks (stale, critical, or abandoned).                                                                |
| [`getStalenessSummary()`](/packages/core/api/functions#getstalenesssummary)                                        | function |                                                                                                                      |

## Types & Interfaces

| Symbol                                                                                                  | Kind      | Description                                                                       |
| ------------------------------------------------------------------------------------------------------- | --------- | --------------------------------------------------------------------------------- |
| [`LoggerConfig`](/packages/core/api/types#loggerconfig)                                                 | interface |                                                                                   |
| [`PlatformPaths`](/packages/core/api/types#platformpaths)                                               | interface | OS-appropriate paths for CLEO's global directories.                               |
| [`SystemInfo`](/packages/core/api/types#systeminfo)                                                     | interface | Immutable system information snapshot, captured once per process.                 |
| [`RequiredColumn`](/packages/core/api/types#requiredcolumn)                                             | interface | Required column definition for ensureColumns().                                   |
| [`VacuumOptions`](/packages/core/api/types#vacuumoptions)                                               | interface |                                                                                   |
| [`AgentInstanceRow`](/packages/core/api/types#agentinstancerow)                                         | type      |                                                                                   |
| [`NewAgentInstanceRow`](/packages/core/api/types#newagentinstancerow)                                   | type      |                                                                                   |
| [`AgentErrorLogRow`](/packages/core/api/types#agenterrorlogrow)                                         | type      |                                                                                   |
| [`NewAgentErrorLogRow`](/packages/core/api/types#newagenterrorlogrow)                                   | type      |                                                                                   |
| [`AgentInstanceStatus`](/packages/core/api/types#agentinstancestatus)                                   | type      |                                                                                   |
| [`AgentType`](/packages/core/api/types#agenttype)                                                       | type      |                                                                                   |
| [`AgentErrorType`](/packages/core/api/types#agenterrortype)                                             | type      |                                                                                   |
| [`WarpChainRow`](/packages/core/api/types#warpchainrow)                                                 | type      |                                                                                   |
| [`NewWarpChainRow`](/packages/core/api/types#newwarpchainrow)                                           | type      |                                                                                   |
| [`WarpChainInstanceRow`](/packages/core/api/types#warpchaininstancerow)                                 | type      |                                                                                   |
| [`NewWarpChainInstanceRow`](/packages/core/api/types#newwarpchaininstancerow)                           | type      |                                                                                   |
| [`StatusRegistryRow`](/packages/core/api/types#statusregistryrow)                                       | type      |                                                                                   |
| [`TaskRow`](/packages/core/api/types#taskrow)                                                           | type      |                                                                                   |
| [`NewTaskRow`](/packages/core/api/types#newtaskrow)                                                     | type      |                                                                                   |
| [`SessionRow`](/packages/core/api/types#sessionrow)                                                     | type      |                                                                                   |
| [`NewSessionRow`](/packages/core/api/types#newsessionrow)                                               | type      |                                                                                   |
| [`TaskDependencyRow`](/packages/core/api/types#taskdependencyrow)                                       | type      |                                                                                   |
| [`TaskRelationRow`](/packages/core/api/types#taskrelationrow)                                           | type      |                                                                                   |
| [`WorkHistoryRow`](/packages/core/api/types#workhistoryrow)                                             | type      |                                                                                   |
| [`LifecyclePipelineRow`](/packages/core/api/types#lifecyclepipelinerow)                                 | type      |                                                                                   |
| [`NewLifecyclePipelineRow`](/packages/core/api/types#newlifecyclepipelinerow)                           | type      |                                                                                   |
| [`LifecycleStageRow`](/packages/core/api/types#lifecyclestagerow)                                       | type      |                                                                                   |
| [`NewLifecycleStageRow`](/packages/core/api/types#newlifecyclestagerow)                                 | type      |                                                                                   |
| [`LifecycleGateResultRow`](/packages/core/api/types#lifecyclegateresultrow)                             | type      |                                                                                   |
| [`NewLifecycleGateResultRow`](/packages/core/api/types#newlifecyclegateresultrow)                       | type      |                                                                                   |
| [`LifecycleEvidenceRow`](/packages/core/api/types#lifecycleevidencerow)                                 | type      |                                                                                   |
| [`NewLifecycleEvidenceRow`](/packages/core/api/types#newlifecycleevidencerow)                           | type      |                                                                                   |
| [`LifecycleTransitionRow`](/packages/core/api/types#lifecycletransitionrow)                             | type      |                                                                                   |
| [`NewLifecycleTransitionRow`](/packages/core/api/types#newlifecycletransitionrow)                       | type      |                                                                                   |
| [`AuditLogRow`](/packages/core/api/types#auditlogrow)                                                   | type      |                                                                                   |
| [`NewAuditLogRow`](/packages/core/api/types#newauditlogrow)                                             | type      |                                                                                   |
| [`TokenUsageRow`](/packages/core/api/types#tokenusagerow)                                               | type      |                                                                                   |
| [`NewTokenUsageRow`](/packages/core/api/types#newtokenusagerow)                                         | type      |                                                                                   |
| [`ArchitectureDecisionRow`](/packages/core/api/types#architecturedecisionrow)                           | type      |                                                                                   |
| [`NewArchitectureDecisionRow`](/packages/core/api/types#newarchitecturedecisionrow)                     | type      |                                                                                   |
| [`AdrTaskLinkRow`](/packages/core/api/types#adrtasklinkrow)                                             | type      |                                                                                   |
| [`NewAdrTaskLinkRow`](/packages/core/api/types#newadrtasklinkrow)                                       | type      |                                                                                   |
| [`AdrRelationRow`](/packages/core/api/types#adrrelationrow)                                             | type      |                                                                                   |
| [`NewAdrRelationRow`](/packages/core/api/types#newadrrelationrow)                                       | type      |                                                                                   |
| [`ManifestEntryRow`](/packages/core/api/types#manifestentryrow)                                         | type      |                                                                                   |
| [`NewManifestEntryRow`](/packages/core/api/types#newmanifestentryrow)                                   | type      |                                                                                   |
| [`PipelineManifestRow`](/packages/core/api/types#pipelinemanifestrow)                                   | type      |                                                                                   |
| [`NewPipelineManifestRow`](/packages/core/api/types#newpipelinemanifestrow)                             | type      |                                                                                   |
| [`ReleaseManifestRow`](/packages/core/api/types#releasemanifestrow)                                     | type      |                                                                                   |
| [`NewReleaseManifestRow`](/packages/core/api/types#newreleasemanifestrow)                               | type      |                                                                                   |
| [`ExternalTaskLinkRow`](/packages/core/api/types#externaltasklinkrow)                                   | type      |                                                                                   |
| [`NewExternalTaskLinkRow`](/packages/core/api/types#newexternaltasklinkrow)                             | type      |                                                                                   |
| [`BrainDecisionRow`](/packages/core/api/types#braindecisionrow)                                         | type      |                                                                                   |
| [`NewBrainDecisionRow`](/packages/core/api/types#newbraindecisionrow)                                   | type      |                                                                                   |
| [`BrainPatternRow`](/packages/core/api/types#brainpatternrow)                                           | type      |                                                                                   |
| [`NewBrainPatternRow`](/packages/core/api/types#newbrainpatternrow)                                     | type      |                                                                                   |
| [`BrainLearningRow`](/packages/core/api/types#brainlearningrow)                                         | type      |                                                                                   |
| [`NewBrainLearningRow`](/packages/core/api/types#newbrainlearningrow)                                   | type      |                                                                                   |
| [`BrainObservationRow`](/packages/core/api/types#brainobservationrow)                                   | type      |                                                                                   |
| [`NewBrainObservationRow`](/packages/core/api/types#newbrainobservationrow)                             | type      |                                                                                   |
| [`BrainMemoryLinkRow`](/packages/core/api/types#brainmemorylinkrow)                                     | type      |                                                                                   |
| [`NewBrainMemoryLinkRow`](/packages/core/api/types#newbrainmemorylinkrow)                               | type      |                                                                                   |
| [`BrainPageNodeRow`](/packages/core/api/types#brainpagenoderow)                                         | type      |                                                                                   |
| [`NewBrainPageNodeRow`](/packages/core/api/types#newbrainpagenoderow)                                   | type      |                                                                                   |
| [`BrainPageEdgeRow`](/packages/core/api/types#brainpageedgerow)                                         | type      |                                                                                   |
| [`NewBrainPageEdgeRow`](/packages/core/api/types#newbrainpageedgerow)                                   | type      |                                                                                   |
| [`BrainStickyNoteRow`](/packages/core/api/types#brainstickynoterow)                                     | type      |                                                                                   |
| [`NewBrainStickyNoteRow`](/packages/core/api/types#newbrainstickynoterow)                               | type      |                                                                                   |
| [`ProjectRegistryRow`](/packages/core/api/types#projectregistryrow)                                     | type      |                                                                                   |
| [`NewProjectRegistryRow`](/packages/core/api/types#newprojectregistryrow)                               | type      |                                                                                   |
| [`NexusAuditLogRow`](/packages/core/api/types#nexusauditlogrow)                                         | type      |                                                                                   |
| [`NewNexusAuditLogRow`](/packages/core/api/types#newnexusauditlogrow)                                   | type      |                                                                                   |
| [`NexusSchemaMetaRow`](/packages/core/api/types#nexusschemametarow)                                     | type      |                                                                                   |
| [`NewNexusSchemaMetaRow`](/packages/core/api/types#newnexusschemametarow)                               | type      |                                                                                   |
| [`ErrorDefinition`](/packages/core/api/types#errordefinition)                                           | interface | A single entry in the unified error catalog.                                      |
| [`ProblemDetails`](/packages/core/api/types#problemdetails)                                             | interface | RFC 9457 Problem Details object. Structured error representation for API resp...  |
| [`ArchiveFields`](/packages/core/api/types#archivefields)                                               | interface | Archive-specific fields for task upsert.                                          |
| [`RegisterAgentOptions`](/packages/core/api/types#registeragentoptions)                                 | interface | Options for registering a new agent instance.                                     |
| [`UpdateStatusOptions`](/packages/core/api/types#updatestatusoptions)                                   | interface | Options for updating agent status.                                                |
| [`ListAgentFilters`](/packages/core/api/types#listagentfilters)                                         | interface | Filters for listing agent instances.                                              |
| [`AgentHealthReport`](/packages/core/api/types#agenthealthreport)                                       | interface | Agent health report summary.                                                      |
| [`AtomicMigrationResult`](/packages/core/api/types#atomicmigrationresult)                               | interface | Atomic database migration result.                                                 |
| [`ReleaseFn`](/packages/core/api/types#releasefn)                                                       | type      | A release function returned by acquireLock.                                       |
| [`ProviderHookEvent`](/packages/core/api/types#providerhookevent)                                       | type      | CAAMP canonical hook event type.  This is the normalized 16-event taxonomy fr...  |
| [`InternalHookEvent`](/packages/core/api/types#internalhookevent)                                       | type      |                                                                                   |
| [`HookEvent`](/packages/core/api/types#hookevent)                                                       | type      | Full CLEO hook event union.  CAAMP defines provider-facing canonical events;...   |
| [`HookPayload`](/packages/core/api/types#hookpayload)                                                   | interface | Base interface for all hook payloads Provides common fields available across...   |
| [`SessionStartPayload`](/packages/core/api/types#sessionstartpayload)                                   | interface | Payload for SessionStart hook (canonical: was onSessionStart) Fired when a CL...  |
| [`OnSessionStartPayload`](/packages/core/api/types#onsessionstartpayload)                               | type      |                                                                                   |
| [`SessionEndPayload`](/packages/core/api/types#sessionendpayload)                                       | interface | Payload for SessionEnd hook (canonical: was onSessionEnd) Fired when a CLEO s...  |
| [`OnSessionEndPayload`](/packages/core/api/types#onsessionendpayload)                                   | type      |                                                                                   |
| [`PreToolUsePayload`](/packages/core/api/types#pretoolusepayload)                                       | interface | Payload for PreToolUse hook (canonical: was onToolStart) Fired when a task/to...  |
| [`OnToolStartPayload`](/packages/core/api/types#ontoolstartpayload)                                     | type      |                                                                                   |
| [`PostToolUsePayload`](/packages/core/api/types#posttoolusepayload)                                     | interface | Payload for PostToolUse hook (canonical: was onToolComplete) Fired when a tas...  |
| [`OnToolCompletePayload`](/packages/core/api/types#ontoolcompletepayload)                               | type      |                                                                                   |
| [`HookHandler`](/packages/core/api/types#hookhandler)                                                   | type      | Handler function type for hook events Handlers receive project root and typed...  |
| [`HookRegistration`](/packages/core/api/types#hookregistration)                                         | interface | Hook registration metadata Tracks registered handlers with priority and event...  |
| [`HookConfig`](/packages/core/api/types#hookconfig)                                                     | interface | Configuration for the hook system Controls which events are enabled/disabled      |
| [`NotificationPayload`](/packages/core/api/types#notificationpayload)                                   | interface | Payload for Notification hook (canonical: was onFileChange) Fired when a trac...  |
| [`OnFileChangePayload`](/packages/core/api/types#onfilechangepayload)                                   | type      |                                                                                   |
| [`PostToolUseFailurePayload`](/packages/core/api/types#posttoolusefailurepayload)                       | interface | Payload for PostToolUseFailure hook (canonical: was onError) Fired when an op...  |
| [`OnErrorPayload`](/packages/core/api/types#onerrorpayload)                                             | type      |                                                                                   |
| [`PromptSubmitPayload`](/packages/core/api/types#promptsubmitpayload)                                   | interface | Payload for PromptSubmit hook (canonical: was onPromptSubmit) Fired when an a...  |
| [`OnPromptSubmitPayload`](/packages/core/api/types#onpromptsubmitpayload)                               | type      |                                                                                   |
| [`ResponseCompletePayload`](/packages/core/api/types#responsecompletepayload)                           | interface | Payload for ResponseComplete hook (canonical: was onResponseComplete) Fired w\... |
| [`OnResponseCompletePayload`](/packages/core/api/types#onresponsecompletepayload)                       | type      |                                                                                   |
| [`SubagentStartPayload`](/packages/core/api/types#subagentstartpayload)                                 | interface | Payload for SubagentStart hook Fired when a subagent process is launched          |
| [`SubagentStopPayload`](/packages/core/api/types#subagentstoppayload)                                   | interface | Payload for SubagentStop hook Fired when a subagent process completes             |
| [`PreCompactPayload`](/packages/core/api/types#precompactpayload)                                       | interface | Payload for PreCompact hook Fired before context compaction begins                |
| [`PostCompactPayload`](/packages/core/api/types#postcompactpayload)                                     | interface | Payload for PostCompact hook Fired after context compaction completes             |
| [`ConfigChangePayload`](/packages/core/api/types#configchangepayload)                                   | interface | Payload for ConfigChange hook Fired when configuration is updated                 |
| [`OnWorkAvailablePayload`](/packages/core/api/types#onworkavailablepayload)                             | interface | Payload for onWorkAvailable hook Fired when the system detects ready work on...   |
| [`OnAgentSpawnPayload`](/packages/core/api/types#onagentspawnpayload)                                   | interface | Payload for onAgentSpawn hook Fired when a worker session/process is launched     |
| [`OnAgentCompletePayload`](/packages/core/api/types#onagentcompletepayload)                             | interface | Payload for onAgentComplete hook Fired when a worker finishes its assigned run    |
| [`OnCascadeStartPayload`](/packages/core/api/types#oncascadestartpayload)                               | interface | Payload for onCascadeStart hook Fired when autonomous execution begins flowin...  |
| [`OnPatrolPayload`](/packages/core/api/types#onpatrolpayload)                                           | interface | Payload for onPatrol hook Fired when a watcher performs a periodic health/swe...  |
| [`CLEOLifecycleEvent`](/packages/core/api/types#cleolifecycleevent)                                     | type      | Type for CLEO lifecycle event names These are the internal events CLEO fires...   |
| [`CLEOAutonomousLifecycleEvent`](/packages/core/api/types#cleoautonomouslifecycleevent)                 | type      | Type for autonomous CLEO lifecycle events.                                        |
| [`SaveJsonOptions`](/packages/core/api/types#savejsonoptions)                                           | interface | Options for saveJson.                                                             |
| [`CheckpointConfig`](/packages/core/api/types#checkpointconfig)                                         | interface | Checkpoint configuration.                                                         |
| [`CheckpointStatus`](/packages/core/api/types#checkpointstatus)                                         | interface | Checkpoint status information.                                                    |
| [`ChangedFile`](/packages/core/api/types#changedfile)                                                   | interface | Changed file with its status.                                                     |
| [`SafetyOptions`](/packages/core/api/types#safetyoptions)                                               | interface | Safety configuration - can be overridden per-operation                            |
| [`RepairResult`](/packages/core/api/types#repairresult)                                                 | interface | Repair result with proper typing.                                                 |
| [`SafetyConfig`](/packages/core/api/types#safetyconfig)                                                 | interface | Safety configuration options.                                                     |
| [`NextDirectives`](/packages/core/api/types#nextdirectives)                                             | type      | Map of follow-up operation names to CLI command strings.                          |
| [`TaskDetail`](/packages/core/api/types#taskdetail)                                                     | interface | Enriched task with hierarchy info.                                                |
| [`PaginateInput`](/packages/core/api/types#paginateinput)                                               | interface | Input parameters for paginating a result set.   T4668  T4663                      |
| [`CompactTask`](/packages/core/api/types#compacttask)                                                   | interface | Compact task representation — minimal fields for list responses.                  |
| [`ListTasksOptions`](/packages/core/api/types#listtasksoptions)                                         | interface | Filter options for listing tasks.                                                 |
| [`ListTasksResult`](/packages/core/api/types#listtasksresult)                                           | interface | Result of listing tasks.                                                          |
| [`FindResult`](/packages/core/api/types#findresult)                                                     | interface | Minimal task info for search results.                                             |
| [`FindTasksOptions`](/packages/core/api/types#findtasksoptions)                                         | interface | Options for finding tasks.                                                        |
| [`FindTasksResult`](/packages/core/api/types#findtasksresult)                                           | interface | Result of finding tasks.                                                          |
| [`AdrFrontmatter`](/packages/core/api/types#adrfrontmatter)                                             | interface | Parsed ADR frontmatter from .md file                                              |
| [`AdrRecord`](/packages/core/api/types#adrrecord)                                                       | interface |                                                                                   |
| [`AdrSyncResult`](/packages/core/api/types#adrsyncresult)                                               | interface |                                                                                   |
| [`AdrListResult`](/packages/core/api/types#adrlistresult)                                               | interface |                                                                                   |
| [`AdrFindResult`](/packages/core/api/types#adrfindresult)                                               | interface |                                                                                   |
| [`PipelineAdrLinkResult`](/packages/core/api/types#pipelineadrlinkresult)                               | interface |                                                                                   |
| [`EvidenceType`](/packages/core/api/types#evidencetype)                                                 | type      |                                                                                   |
| [`EvidenceRecord`](/packages/core/api/types#evidencerecord)                                             | interface |                                                                                   |
| [`RelatedLink`](/packages/core/api/types#relatedlink)                                                   | interface | Related link in frontmatter.                                                      |
| [`FrontmatterMetadata`](/packages/core/api/types#frontmattermetadata)                                   | interface | Frontmatter metadata for an RCASD artifact.                                       |
| [`ParsedFrontmatter`](/packages/core/api/types#parsedfrontmatter)                                       | interface | Result of parsing frontmatter from a markdown file.                               |
| [`Stage`](/packages/core/api/types#stage)                                                               | type      | Stage type derived from canonical stage list.   T4800                             |
| [`StageCategory`](/packages/core/api/types#stagecategory)                                               | type      | Stage category for grouping related stages.   T4800                               |
| [`StageDefinition`](/packages/core/api/types#stagedefinition)                                           | interface | Stage metadata with descriptive information.   T4800                              |
| [`TransitionRule`](/packages/core/api/types#transitionrule)                                             | interface | Transition rule - defines if a transition is allowed.   T4800                     |
| [`StageArtifactResult`](/packages/core/api/types#stageartifactresult)                                   | interface |                                                                                   |
| [`SkillFrontmatter`](/packages/core/api/types#skillfrontmatter)                                         | interface | Skill frontmatter parsed from SKILL.md YAML header.  This is CLEO's extended...   |
| [`Skill`](/packages/core/api/types#skill)                                                               | interface | Skill definition loaded from disk.  CLEO-specific type that wraps a...            |
| [`SkillSummary`](/packages/core/api/types#skillsummary)                                                 | interface | Lightweight skill summary for manifest/listing.  Projected from `Skill` for e...  |
| [`SkillManifest`](/packages/core/api/types#skillmanifest)                                               | interface | Skill manifest (cached aggregate of all discovered skills).                       |
| [`SkillProtocolType`](/packages/core/api/types#skillprotocoltype)                                       | type      | RCASD-IVTR+C protocol types.                                                      |
| [`AgentConfig`](/packages/core/api/types#agentconfig)                                                   | interface | Agent configuration from AGENT.md or agent definition.                            |
| [`AgentRegistryEntry`](/packages/core/api/types#agentregistryentry)                                     | interface | Agent registry entry.                                                             |
| [`AgentRegistry`](/packages/core/api/types#agentregistry)                                               | interface | Agent registry (persisted).                                                       |
| [`SkillSearchScope`](/packages/core/api/types#skillsearchscope)                                         | type      | CAAMP search order for skill discovery.                                           |
| [`SkillSearchPath`](/packages/core/api/types#skillsearchpath)                                           | interface | Ordered search path entry.                                                        |
| [`DispatchStrategy`](/packages/core/api/types#dispatchstrategy)                                         | type      | Dispatch strategy for skill selection.                                            |
| [`DispatchResult`](/packages/core/api/types#dispatchresult)                                             | interface | Dispatch result from skill\_auto\_dispatch.                                       |
| [`TokenDefinition`](/packages/core/api/types#tokendefinition)                                           | interface | Token definition from placeholders.json.                                          |
| [`TokenValidationResult`](/packages/core/api/types#tokenvalidationresult)                               | interface | Token validation result.                                                          |
| [`TokenContext`](/packages/core/api/types#tokencontext)                                                 | interface | Token injection context.                                                          |
| [`OrchestratorThresholds`](/packages/core/api/types#orchestratorthresholds)                             | interface | Orchestrator context thresholds.                                                  |
| [`PreSpawnCheckResult`](/packages/core/api/types#prespawncheckresult)                                   | interface | Pre-spawn check result.                                                           |
| [`SpawnPromptResult`](/packages/core/api/types#spawnpromptresult)                                       | interface | Spawn prompt result.                                                              |
| [`DependencyWave`](/packages/core/api/types#dependencywave)                                             | interface | Dependency wave for parallel execution.                                           |
| [`DependencyAnalysis`](/packages/core/api/types#dependencyanalysis)                                     | interface | Dependency analysis result.                                                       |
| [`HitlSummary`](/packages/core/api/types#hitlsummary)                                                   | interface | HITL summary for session handoff.                                                 |
| [`ManifestEntry`](/packages/core/api/types#manifestentry)                                               | interface | Research manifest entry (pipeline\_manifest table, ADR-027).                      |
| [`ManifestValidationResult`](/packages/core/api/types#manifestvalidationresult)                         | interface | Manifest validation result.                                                       |
| [`ComplianceResult`](/packages/core/api/types#complianceresult)                                         | interface | Compliance verification result.                                                   |
| [`InstalledSkill`](/packages/core/api/types#installedskill)                                             | interface | Installed skill tracking.                                                         |
| [`InstalledSkillsFile`](/packages/core/api/types#installedskillsfile)                                   | interface | Installed skills file.                                                            |
| [`TokenValues`](/packages/core/api/types#tokenvalues)                                                   | type      | Token values map: TOKEN\_NAME - value.                                            |
| [`MultiSkillComposition`](/packages/core/api/types#multiskillcomposition)                               | interface | Result of multi-skill composition.                                                |
| [`StageGuidance`](/packages/core/api/types#stageguidance)                                               | interface | Structured guidance for a single pipeline stage.  Pi extensions consume the...    |
| [`EnforcementMode`](/packages/core/api/types#enforcementmode)                                           | type      | Lifecycle enforcement modes.                                                      |
| [`GateData`](/packages/core/api/types#gatedata)                                                         | interface | Gate data within a stage.                                                         |
| [`ManifestStageData`](/packages/core/api/types#manifeststagedata)                                       | interface | Stage data in an on-disk manifest.                                                |
| [`RcasdManifest`](/packages/core/api/types#rcasdmanifest)                                               | interface | Canonical RCASD manifest-shaped interface for compatibility payloads. Lifecyc...  |
| [`GateCheckResult`](/packages/core/api/types#gatecheckresult)                                           | interface | Gate check result.                                                                |
| [`StageTransitionResult`](/packages/core/api/types#stagetransitionresult)                               | interface | Stage transition result.                                                          |
| [`LifecycleHistoryEntry`](/packages/core/api/types#lifecyclehistoryentry)                               | interface | History entry for stage transitions.                                              |
| [`AlertLevel`](/packages/core/api/types#alertlevel)                                                     | type      | Alert level names.                                                                |
| [`AlertCheckResult`](/packages/core/api/types#alertcheckresult)                                         | interface | Alert result from check\_context\_alert.                                          |
| [`FormatOptions`](/packages/core/api/types#formatoptions)                                               | interface | Options for envelope formatting.   T4668  T4670  T4663                            |
| [`CleoRegistryEntry`](/packages/core/api/types#cleoregistryentry)                                       | interface | Entry in the CLEO-to-LAFS error registry.   T4671  T4663                          |
| [`TestDbEnv`](/packages/core/api/types#testdbenv)                                                       | interface | Result of creating a test database environment.                                   |
| [`HierarchyValidation`](/packages/core/api/types#hierarchyvalidation)                                   | interface | Validate that adding a child to a parent would not violate constraints.           |
| [`TaskTreeNode`](/packages/core/api/types#tasktreenode)                                                 | interface | Build a tree structure from flat task list.                                       |
| [`HierarchyPolicy`](/packages/core/api/types#hierarchypolicy)                                           | interface |                                                                                   |
| [`HierarchyValidationResult`](/packages/core/api/types#hierarchyvalidationresult)                       | interface |                                                                                   |
| [`StrictnessPreset`](/packages/core/api/types#strictnesspreset)                                         | type      | Valid preset names.                                                               |
| [`PresetDefinition`](/packages/core/api/types#presetdefinition)                                         | interface | A preset definition: the config keys it sets and a human description.             |
| [`ApplyPresetResult`](/packages/core/api/types#applypresetresult)                                       | interface | Result of applying a preset.                                                      |
| [`SessionRecord`](/packages/core/api/types#sessionrecord)                                               | interface | Session object (engine-compatible).                                               |
| [`TaskWorkStateExt`](/packages/core/api/types#taskworkstateext)                                         | interface | Task work state from the task store.  Extends the strict contracts...             |
| [`DecisionRecord`](/packages/core/api/types#decisionrecord)                                             | interface | Decision record stored in decisions.jsonl.                                        |
| [`AssumptionRecord`](/packages/core/api/types#assumptionrecord)                                         | interface | Assumption record stored in assumptions.jsonl.                                    |
| [`RecordDecisionParams`](/packages/core/api/types#recorddecisionparams)                                 | interface |                                                                                   |
| [`DecisionLogParams`](/packages/core/api/types#decisionlogparams)                                       | interface |                                                                                   |
| [`HandoffData`](/packages/core/api/types#handoffdata)                                                   | interface | Handoff data schema - structured state for session transition.                    |
| [`ComputeHandoffOptions`](/packages/core/api/types#computehandoffoptions)                               | interface | Options for computing handoff data.                                               |
| [`GitState`](/packages/core/api/types#gitstate)                                                         | interface | Git state snapshot captured at session end.                                       |
| [`DebriefDecision`](/packages/core/api/types#debriefdecision)                                           | interface | Decision summary for debrief output.                                              |
| [`DebriefData`](/packages/core/api/types#debriefdata)                                                   | interface | Rich debrief data — superset of HandoffData. Captures comprehensive session s...  |
| [`ComputeDebriefOptions`](/packages/core/api/types#computedebriefoptions)                               | interface | Options for computing debrief data.                                               |
| [`BrainFtsRow`](/packages/core/api/types#brainftsrow)                                                   | interface | Row returned by FTS content\_hash duplicate check (brain-retrieval.ts observeB... |
| [`BrainNarrativeRow`](/packages/core/api/types#brainnarrativerow)                                       | interface | Row returned by narrative backfill query (brain-retrieval.ts populateEmbeddin...  |
| [`BrainSearchHit`](/packages/core/api/types#brainsearchhit)                                             | interface | Flattened FTS hit used in hybrid search scoring (brain-search.ts hybridSearch).   |
| [`BrainKnnRow`](/packages/core/api/types#brainknnrow)                                                   | interface | Row returned by KNN vector similarity query (brain-similarity.ts searchSimilar).  |
| [`BrainDecisionNode`](/packages/core/api/types#braindecisionnode)                                       | interface | Decision node attached to a blocker in causal traces (brain-reasoning.ts reas...  |
| [`BrainAnchor`](/packages/core/api/types#brainanchor)                                                   | interface | Anchor entry in a timeline result (brain-retrieval.ts timelineBrain).             |
| [`BrainTimelineNeighborRow`](/packages/core/api/types#braintimelineneighborrow)                         | interface | Row returned by timeline UNION ALL neighbor queries (brain-retrieval.ts timel...  |
| [`BrainConsolidationObservationRow`](/packages/core/api/types#brainconsolidationobservationrow)         | interface | Row returned by the consolidation observation query (brain-lifecycle.ts conso...  |
| [`BrainIdCheckRow`](/packages/core/api/types#brainidcheckrow)                                           | interface | Row returned by ID existence check queries (claude-mem-migration.ts).  Used b...  |
| [`EmbeddingProvider`](/packages/core/api/types#embeddingprovider)                                       | interface | Contract for embedding providers (local models, API services, etc.).              |
| [`SimilarityResult`](/packages/core/api/types#similarityresult)                                         | interface |                                                                                   |
| [`BrainSearchResult`](/packages/core/api/types#brainsearchresult)                                       | interface | Search result with BM25 rank.                                                     |
| [`BrainSearchOptions`](/packages/core/api/types#brainsearchoptions)                                     | interface | Search options.                                                                   |
| [`HybridResult`](/packages/core/api/types#hybridresult)                                                 | interface | Result from hybridSearch combining multiple search signals.                       |
| [`HybridSearchOptions`](/packages/core/api/types#hybridsearchoptions)                                   | interface | Options for hybridSearch weighting and limits.                                    |
| [`MemoryBridgeConfig`](/packages/core/api/types#memorybridgeconfig)                                     | interface | Configuration for memory bridge content generation.                               |
| [`BrainCompactHit`](/packages/core/api/types#braincompacthit)                                           | interface | Compact search hit — minimal fields for index-level results.                      |
| [`SearchBrainCompactParams`](/packages/core/api/types#searchbraincompactparams)                         | interface | Parameters for searchBrainCompact.                                                |
| [`SearchBrainCompactResult`](/packages/core/api/types#searchbraincompactresult)                         | interface | Result from searchBrainCompact.                                                   |
| [`TimelineBrainParams`](/packages/core/api/types#timelinebrainparams)                                   | interface | Parameters for timelineBrain.                                                     |
| [`TimelineNeighbor`](/packages/core/api/types#timelineneighbor)                                         | interface | Timeline entry — compact id/type/date tuple.                                      |
| [`TimelineBrainResult`](/packages/core/api/types#timelinebrainresult)                                   | interface | Result from timelineBrain.                                                        |
| [`FetchBrainEntriesParams`](/packages/core/api/types#fetchbrainentriesparams)                           | interface | Parameters for fetchBrainEntries.                                                 |
| [`FetchedBrainEntry`](/packages/core/api/types#fetchedbrainentry)                                       | interface | Fetched entry with full data.                                                     |
| [`FetchBrainEntriesResult`](/packages/core/api/types#fetchbrainentriesresult)                           | interface | Result from fetchBrainEntries.                                                    |
| [`BrainObservationType`](/packages/core/api/types#brainobservationtype)                                 | type      | Observation type from schema.                                                     |
| [`BrainObservationSourceType`](/packages/core/api/types#brainobservationsourcetype)                     | type      | Observation source type from schema.                                              |
| [`ObserveBrainParams`](/packages/core/api/types#observebrainparams)                                     | interface | Parameters for observeBrain.                                                      |
| [`ObserveBrainResult`](/packages/core/api/types#observebrainresult)                                     | interface | Result from observeBrain.                                                         |
| [`PopulateEmbeddingsResult`](/packages/core/api/types#populateembeddingsresult)                         | interface | Result from populateEmbeddings backfill.                                          |
| [`PopulateEmbeddingsOptions`](/packages/core/api/types#populateembeddingsoptions)                       | interface | Options for the embedding backfill pipeline.                                      |
| [`AuditEntry`](/packages/core/api/types#auditentry)                                                     | interface | Audit entry interface. Used by session-grade and system-engine for behavioral...  |
| [`StoreLearningParams`](/packages/core/api/types#storelearningparams)                                   | interface | Parameters for storing a new learning.                                            |
| [`SearchLearningParams`](/packages/core/api/types#searchlearningparams)                                 | interface | Parameters for searching learnings.                                               |
| [`DimensionScore`](/packages/core/api/types#dimensionscore)                                             | interface |                                                                                   |
| [`GradeResult`](/packages/core/api/types#graderesult)                                                   | interface |                                                                                   |
| [`AdapterInfo`](/packages/core/api/types#adapterinfo)                                                   | interface | Summary info for an adapter without exposing the full instance.                   |
| [`SessionBridgeData`](/packages/core/api/types#sessionbridgedata)                                       | interface | Session data needed to create a memory bridge observation.                        |
| [`StoreDecisionParams`](/packages/core/api/types#storedecisionparams)                                   | interface | Parameters for storing a new decision.                                            |
| [`SearchDecisionParams`](/packages/core/api/types#searchdecisionparams)                                 | interface | Parameters for searching decisions.                                               |
| [`ListDecisionParams`](/packages/core/api/types#listdecisionparams)                                     | interface | Parameters for listing decisions.                                                 |
| [`PatternType`](/packages/core/api/types#patterntype)                                                   | type      | Pattern types from ADR-009.                                                       |
| [`PatternImpact`](/packages/core/api/types#patternimpact)                                               | type      | Impact level.                                                                     |
| [`StorePatternParams`](/packages/core/api/types#storepatternparams)                                     | interface | Parameters for storing a new pattern.                                             |
| [`SearchPatternParams`](/packages/core/api/types#searchpatternparams)                                   | interface | Parameters for searching patterns.                                                |
| [`RecordAssumptionParams`](/packages/core/api/types#recordassumptionparams)                             | interface |                                                                                   |
| [`BulkLinkEntry`](/packages/core/api/types#bulklinkentry)                                               | interface | A link to be created in bulk.                                                     |
| [`SessionMemoryResult`](/packages/core/api/types#sessionmemoryresult)                                   | interface | Result of persisting session memory to brain.db.                                  |
| [`MemoryItem`](/packages/core/api/types#memoryitem)                                                     | interface | A memory item to be persisted to brain.db.                                        |
| [`SessionMemoryContext`](/packages/core/api/types#sessionmemorycontext)                                 | interface | Memory context returned for session start/resume enrichment.                      |
| [`Pipeline`](/packages/core/api/types#pipeline)                                                         | interface | Pipeline entity representing a task's lifecycle state.   T4800  T4799 - Unifi...  |
| [`PipelineStageRecord`](/packages/core/api/types#pipelinestagerecord)                                   | interface | Pipeline stage record linking pipeline to individual stages.   T4800  T4801 -...  |
| [`PipelineTransition`](/packages/core/api/types#pipelinetransition)                                     | interface | Pipeline transition record for audit trail.   T4800  T4801 - Requires pipelin...  |
| [`InitializePipelineOptions`](/packages/core/api/types#initializepipelineoptions)                       | interface | Options for initializing a pipeline.   T4800                                      |
| [`AdvanceStageOptions`](/packages/core/api/types#advancestageoptions)                                   | interface | Options for advancing pipeline stage.   T4800                                     |
| [`PipelineQueryOptions`](/packages/core/api/types#pipelinequeryoptions)                                 | interface | Pipeline query options.   T4800                                                   |
| [`BriefingTask`](/packages/core/api/types#briefingtask)                                                 | interface | Task summary for briefing output.                                                 |
| [`BriefingBug`](/packages/core/api/types#briefingbug)                                                   | interface | Bug summary for briefing output.                                                  |
| [`BriefingBlockedTask`](/packages/core/api/types#briefingblockedtask)                                   | interface | Blocked task summary for briefing output.                                         |
| [`BriefingEpic`](/packages/core/api/types#briefingepic)                                                 | interface | Active epic summary for briefing output.                                          |
| [`PipelineStageInfo`](/packages/core/api/types#pipelinestageinfo)                                       | interface | Pipeline stage data for briefing output.                                          |
| [`LastSessionInfo`](/packages/core/api/types#lastsessioninfo)                                           | interface | Last session info with handoff data.                                              |
| [`CurrentTaskInfo`](/packages/core/api/types#currenttaskinfo)                                           | interface | Currently active task info.                                                       |
| [`SessionBriefing`](/packages/core/api/types#sessionbriefing)                                           | interface | Session briefing result.                                                          |
| [`BriefingOptions`](/packages/core/api/types#briefingoptions)                                           | interface | Options for computing session briefing.                                           |
| [`MinimalSessionRecord`](/packages/core/api/types#minimalsessionrecord)                                 | interface | Minimal session record returned by findSessions().                                |
| [`FindSessionsParams`](/packages/core/api/types#findsessionsparams)                                     | interface | Parameters for findSessions().                                                    |
| [`ContextDriftResult`](/packages/core/api/types#contextdriftresult)                                     | interface |                                                                                   |
| [`SessionHistoryEntry`](/packages/core/api/types#sessionhistoryentry)                                   | interface |                                                                                   |
| [`SessionHistoryParams`](/packages/core/api/types#sessionhistoryparams)                                 | interface |                                                                                   |
| [`SessionStatsResult`](/packages/core/api/types#sessionstatsresult)                                     | interface |                                                                                   |
| [`RuntimeProviderContext`](/packages/core/api/types#runtimeprovidercontext)                             | interface |                                                                                   |
| [`RuntimeProviderSnapshot`](/packages/core/api/types#runtimeprovidersnapshot)                           | interface |                                                                                   |
| [`StartSessionOptions`](/packages/core/api/types#startsessionoptions)                                   | interface | Options for starting a session.                                                   |
| [`EndSessionOptions`](/packages/core/api/types#endsessionoptions)                                       | interface | Options for ending a session.                                                     |
| [`ListSessionsOptions`](/packages/core/api/types#listsessionsoptions)                                   | interface | Options for listing sessions.                                                     |
| [`EnforcementMode`](/packages/core/api/types#enforcementmode)                                           | type      | Enforcement modes.                                                                |
| [`ActiveSessionInfo`](/packages/core/api/types#activesessioninfo)                                       | interface | Session info for enforcement checks.                                              |
| [`EnforcementResult`](/packages/core/api/types#enforcementresult)                                       | interface | Enforcement result.                                                               |
| [`ValidationResult`](/packages/core/api/types#validationresult)                                         | interface |                                                                                   |
| [`AddTaskEnforcementOptions`](/packages/core/api/types#addtaskenforcementoptions)                       | interface |                                                                                   |
| [`UpdateTaskEnforcementOptions`](/packages/core/api/types#updatetaskenforcementoptions)                 | interface |                                                                                   |
| [`AcceptanceEnforcement`](/packages/core/api/types#acceptanceenforcement)                               | interface |                                                                                   |
| [`ResolvedParent`](/packages/core/api/types#resolvedparent)                                             | interface | Minimal parent task shape needed for pipeline stage resolution.  T060             |
| [`TaskPipelineStage`](/packages/core/api/types#taskpipelinestage)                                       | type      | Union type of all valid pipeline stage names.                                     |
| [`LifecycleMode`](/packages/core/api/types#lifecyclemode)                                               | type      | The resolved enforcement mode (from lifecycle.mode config key).                   |
| [`EpicEnforcementResult`](/packages/core/api/types#epicenforcementresult)                               | interface | Result of an enforcement check.  `warning` is populated in advisory mode.         |
| [`AddTaskOptions`](/packages/core/api/types#addtaskoptions)                                             | interface | Options for creating a task.  `description` is **required** per CLEO's anti-h...  |
| [`AddTaskResult`](/packages/core/api/types#addtaskresult)                                               | interface | Result of adding a task.                                                          |
| [`ListPhasesResult`](/packages/core/api/types#listphasesresult)                                         | interface | Options for listing phases.                                                       |
| [`SetPhaseOptions`](/packages/core/api/types#setphaseoptions)                                           | interface | Options for setting current phase.                                                |
| [`SetPhaseResult`](/packages/core/api/types#setphaseresult)                                             | interface | Result of a phase set operation.                                                  |
| [`ShowPhaseResult`](/packages/core/api/types#showphaseresult)                                           | interface | Phase show result.                                                                |
| [`AdvancePhaseResult`](/packages/core/api/types#advancephaseresult)                                     | interface | Phase advance result.                                                             |
| [`RenamePhaseResult`](/packages/core/api/types#renamephaseresult)                                       | interface | Phase rename result.                                                              |
| [`DeletePhaseResult`](/packages/core/api/types#deletephaseresult)                                       | interface | Phase delete result.                                                              |
| [`PruneResult`](/packages/core/api/types#pruneresult)                                                   | interface |                                                                                   |
| [`SchemaInstallResult`](/packages/core/api/types#schemainstallresult)                                   | interface |                                                                                   |
| [`StalenessReport`](/packages/core/api/types#stalenessreport)                                           | interface |                                                                                   |
| [`InstalledSchema`](/packages/core/api/types#installedschema)                                           | interface |                                                                                   |
| [`CheckResult`](/packages/core/api/types#checkresult)                                                   | interface |                                                                                   |
| [`JsonFileIntegrityResult`](/packages/core/api/types#jsonfileintegrityresult)                           | interface | Result for a single file check.                                                   |
| [`SchemaIntegrityReport`](/packages/core/api/types#schemaintegrityreport)                               | interface | Full integrity report for all JSON files.                                         |
| [`ProjectType`](/packages/core/api/types#projecttype)                                                   | type      | Detected project type.                                                            |
| [`TestFramework`](/packages/core/api/types#testframework)                                               | type      | Test framework.                                                                   |
| [`FileNamingConvention`](/packages/core/api/types#filenamingconvention)                                 | type      |                                                                                   |
| [`ImportStyle`](/packages/core/api/types#importstyle)                                                   | type      |                                                                                   |
| [`ProjectContext`](/packages/core/api/types#projectcontext)                                             | interface | Schema-compliant project context for LLM agent consumption.                       |
| [`ScaffoldResult`](/packages/core/api/types#scaffoldresult)                                             | interface |                                                                                   |
| [`InjectionCheckResult`](/packages/core/api/types#injectioncheckresult)                                 | interface |                                                                                   |
| [`ScaffoldResult`](/packages/core/api/types#scaffoldresult)                                             | interface | Result of an ensure\* scaffolding operation.                                      |
| [`CheckStatus`](/packages/core/api/types#checkstatus)                                                   | type      | Status of a check\* diagnostic.                                                   |
| [`CheckResult`](/packages/core/api/types#checkresult)                                                   | interface | Result of a check\* diagnostic (compatible with doctor/checks.ts CheckResult).    |
| [`ProjectClassification`](/packages/core/api/types#projectclassification)                               | interface | Classification result for a project directory.                                    |
| [`ClassificationSignal`](/packages/core/api/types#classificationsignal)                                 | interface | A single classification signal detected on the filesystem.                        |
| [`ScaffoldResult`](/packages/core/api/types#scaffoldresult)                                             | interface |                                                                                   |
| [`HookCheckResult`](/packages/core/api/types#hookcheckresult)                                           | interface |                                                                                   |
| [`EnsureGitHooksOptions`](/packages/core/api/types#ensuregithooksoptions)                               | interface |                                                                                   |
| [`ManagedHook`](/packages/core/api/types#managedhook)                                                   | type      |                                                                                   |
| [`LegacyDetectionResult`](/packages/core/api/types#legacydetectionresult)                               | interface | Result of detecting legacy agent-output directories.                              |
| [`AgentOutputsMigrationResult`](/packages/core/api/types#agentoutputsmigrationresult)                   | interface | Result of running the agent-outputs migration.                                    |
| [`NexusPermissionLevel`](/packages/core/api/types#nexuspermissionlevel)                                 | type      |                                                                                   |
| [`NexusHealthStatus`](/packages/core/api/types#nexushealthstatus)                                       | type      |                                                                                   |
| [`NexusProject`](/packages/core/api/types#nexusproject)                                                 | interface | Domain representation of a registered Nexus project.                              |
| [`NexusRegistryFile`](/packages/core/api/types#nexusregistryfile)                                       | interface | Legacy registry file shape (pre-SQLite). Retained for migration compatibility.    |
| [`StackAnalysis`](/packages/core/api/types#stackanalysis)                                               | interface |                                                                                   |
| [`ArchAnalysis`](/packages/core/api/types#archanalysis)                                                 | interface |                                                                                   |
| [`StructureAnalysis`](/packages/core/api/types#structureanalysis)                                       | interface |                                                                                   |
| [`ConventionAnalysis`](/packages/core/api/types#conventionanalysis)                                     | interface |                                                                                   |
| [`TestingAnalysis`](/packages/core/api/types#testinganalysis)                                           | interface |                                                                                   |
| [`IntegrationAnalysis`](/packages/core/api/types#integrationanalysis)                                   | interface |                                                                                   |
| [`ConcernAnalysis`](/packages/core/api/types#concernanalysis)                                           | interface |                                                                                   |
| [`CodebaseMapResult`](/packages/core/api/types#codebasemapresult)                                       | interface |                                                                                   |
| [`MapCodebaseOptions`](/packages/core/api/types#mapcodebaseoptions)                                     | interface |                                                                                   |
| [`InitOptions`](/packages/core/api/types#initoptions)                                                   | interface | Options for the init operation.                                                   |
| [`InitResult`](/packages/core/api/types#initresult)                                                     | interface | Result of the init operation.                                                     |
| [`BootstrapContext`](/packages/core/api/types#bootstrapcontext)                                         | interface | Result tracking arrays passed through each bootstrap step.                        |
| [`BootstrapOptions`](/packages/core/api/types#bootstrapoptions)                                         | interface | Options for bootstrapGlobalCleo.                                                  |
| [`ExportFormat`](/packages/core/api/types#exportformat)                                                 | type      |                                                                                   |
| [`ExportParams`](/packages/core/api/types#exportparams)                                                 | interface |                                                                                   |
| [`ExportResult`](/packages/core/api/types#exportresult)                                                 | interface |                                                                                   |
| [`ImportParams`](/packages/core/api/types#importparams)                                                 | interface |                                                                                   |
| [`ImportResult`](/packages/core/api/types#importresult)                                                 | interface |                                                                                   |
| [`AgentExecutionOutcome`](/packages/core/api/types#agentexecutionoutcome)                               | type      | The outcome of an agent's execution attempt on a task.                            |
| [`AgentExecutionEvent`](/packages/core/api/types#agentexecutionevent)                                   | interface | Context recorded when an agent completes or fails a task.                         |
| [`AgentPerformanceSummary`](/packages/core/api/types#agentperformancesummary)                           | interface | Summary of an agent type's execution performance on a task type.                  |
| [`HealingSuggestion`](/packages/core/api/types#healingsuggestion)                                       | interface | A self-healing suggestion derived from failure pattern history.                   |
| [`AgentCapacity`](/packages/core/api/types#agentcapacity)                                               | interface | Task-count-based capacity for a single agent instance.                            |
| [`AgentPerformanceMetrics`](/packages/core/api/types#agentperformancemetrics)                           | interface | Metrics provided when recording agent performance.                                |
| [`CapacitySummary`](/packages/core/api/types#capacitysummary)                                           | interface | Capacity summary for reporting.                                                   |
| [`AgentHealthStatus`](/packages/core/api/types#agenthealthstatus)                                       | interface | Health status of a specific agent instance.                                       |
| [`RetryPolicy`](/packages/core/api/types#retrypolicy)                                                   | interface | Configuration for retry behavior.                                                 |
| [`RetryResult`](/packages/core/api/types#retryresult)                                                   | interface | Result of a retried operation.                                                    |
| [`AgentRecoveryResult`](/packages/core/api/types#agentrecoveryresult)                                   | interface | Result of a recovery attempt for a single agent.                                  |
| [`RiskFactor`](/packages/core/api/types#riskfactor)                                                     | interface | A single factor contributing to a task's overall risk score.  Each factor has...  |
| [`RiskAssessment`](/packages/core/api/types#riskassessment)                                             | interface | Complete risk assessment for a single task.  Returned by `calculateTaskRisk`....  |
| [`ValidationPrediction`](/packages/core/api/types#validationprediction)                                 | interface | Predicted outcome for a lifecycle validation gate.  Returned by...                |
| [`DetectedPattern`](/packages/core/api/types#detectedpattern)                                           | interface | A pattern automatically detected from historical brain/task data.  Detected p...  |
| [`PatternMatch`](/packages/core/api/types#patternmatch)                                                 | interface | Result of matching a task against known patterns from brain\_patterns.  Includ... |
| [`PatternExtractionOptions`](/packages/core/api/types#patternextractionoptions)                         | interface | Options for pattern extraction from historical data.                              |
| [`PatternStatsUpdate`](/packages/core/api/types#patternstatsupdate)                                     | interface | Result of updating pattern statistics after an outcome.                           |
| [`LearningContext`](/packages/core/api/types#learningcontext)                                           | interface | Summary of applicable learnings for a task, used in prediction.                   |
| [`ImpactAssessment`](/packages/core/api/types#impactassessment)                                         | interface | Full impact assessment for a task within its dependency graph.  Captures dire...  |
| [`ChangeType`](/packages/core/api/types#changetype)                                                     | type      | The type of change being analyzed.                                                |
| [`ChangeImpact`](/packages/core/api/types#changeimpact)                                                 | interface | Predicted downstream effects of a specific change to a task.  Models what hap...  |
| [`AffectedTask`](/packages/core/api/types#affectedtask)                                                 | interface | A single task affected by a change, with its predicted new state.                 |
| [`ImpactedTask`](/packages/core/api/types#impactedtask)                                                 | interface | A single task predicted to be affected by a free-text change description.  Pr...  |
| [`ImpactReport`](/packages/core/api/types#impactreport)                                                 | interface | Full impact prediction report for a free-text change description.  Returned b...  |
| [`BlastRadiusSeverity`](/packages/core/api/types#blastradiusseverity)                                   | type      | Severity classification for blast radius.                                         |
| [`BlastRadius`](/packages/core/api/types#blastradius)                                                   | interface | Quantified scope of a task's impact across the project.                           |
| [`GateFocusRecommendation`](/packages/core/api/types#gatefocusrecommendation)                           | interface | A gate-level focus recommendation produced by adaptive validation.                |
| [`AdaptiveValidationSuggestion`](/packages/core/api/types#adaptivevalidationsuggestion)                 | interface | Full adaptive validation suggestion set for a task.                               |
| [`VerificationConfidenceScore`](/packages/core/api/types#verificationconfidencescore)                   | interface | Result of scoring and persisting a completed verification round.                  |
| [`StorePredictionOptions`](/packages/core/api/types#storepredictionoptions)                             | interface | Parameters for storing a quality prediction as a brain observation.               |
| [`DependencyCheckResult`](/packages/core/api/types#dependencycheckresult)                               | interface | Result of a dependency validation check.                                          |
| [`DependencyError`](/packages/core/api/types#dependencyerror)                                           | interface | A dependency error.                                                               |
| [`DependencyWarning`](/packages/core/api/types#dependencywarning)                                       | interface | A dependency warning.                                                             |
| [`DependencyWave`](/packages/core/api/types#dependencywave)                                             | interface | A wave of parallelizable tasks.                                                   |
| [`NexusParsedQuery`](/packages/core/api/types#nexusparsedquery)                                         | interface |                                                                                   |
| [`NexusResolvedTask`](/packages/core/api/types#nexusresolvedtask)                                       | type      | Task with project context annotation.                                             |
| [`DiscoverResult`](/packages/core/api/types#discoverresult)                                             | interface |                                                                                   |
| [`NexusDiscoverResult`](/packages/core/api/types#nexusdiscoverresult)                                   | interface |                                                                                   |
| [`SearchResult`](/packages/core/api/types#searchresult)                                                 | interface |                                                                                   |
| [`NexusSearchResult`](/packages/core/api/types#nexussearchresult)                                       | interface |                                                                                   |
| [`PermissionCheckResult`](/packages/core/api/types#permissioncheckresult)                               | interface |                                                                                   |
| [`SharingStatus`](/packages/core/api/types#sharingstatus)                                               | interface | Result of a sharing status check.                                                 |
| [`TaskCurrentResult`](/packages/core/api/types#taskcurrentresult)                                       | interface | Result of getting current task.                                                   |
| [`TaskStartResult`](/packages/core/api/types#taskstartresult)                                           | interface | Result of starting work on a task.                                                |
| [`TaskWorkHistoryEntry`](/packages/core/api/types#taskworkhistoryentry)                                 | interface | Task work history entry.                                                          |
| [`CompleteTaskOptions`](/packages/core/api/types#completetaskoptions)                                   | interface | Options for completing a task.                                                    |
| [`CompleteTaskResult`](/packages/core/api/types#completetaskresult)                                     | interface | Result of completing a task.                                                      |
| [`RuleViolation`](/packages/core/api/types#ruleviolation)                                               | interface | Validation error from anti-hallucination checks                                   |
| [`UpdateTaskOptions`](/packages/core/api/types#updatetaskoptions)                                       | interface | Options for updating a task.                                                      |
| [`UpdateTaskResult`](/packages/core/api/types#updatetaskresult)                                         | interface | Result of updating a task.                                                        |
| [`ParsedDirective`](/packages/core/api/types#parseddirective)                                           | interface | Parsed directive from a Conduit message.                                          |
| [`RouteResult`](/packages/core/api/types#routeresult)                                                   | interface | Result of routing a directive to a project.                                       |
| [`WorkspaceStatus`](/packages/core/api/types#workspacestatus)                                           | interface | Aggregated task status across all projects.                                       |
| [`WorkspaceProjectSummary`](/packages/core/api/types#workspaceprojectsummary)                           | interface | Task summary for a single project.                                                |
| [`WorkspaceAgent`](/packages/core/api/types#workspaceagent)                                             | interface | Agent info aggregated across projects.                                            |
| [`ProjectACL`](/packages/core/api/types#projectacl)                                                     | interface | Project-level ACL entry.                                                          |
| [`DepNode`](/packages/core/api/types#depnode)                                                           | interface | A node in the dependency graph.                                                   |
| [`DepsOverviewResult`](/packages/core/api/types#depsoverviewresult)                                     | interface | Dependency overview result.                                                       |
| [`TaskDepsResult`](/packages/core/api/types#taskdepsresult)                                             | interface | Single task dependency result.                                                    |
| [`ExecutionWave`](/packages/core/api/types#executionwave)                                               | interface | Execution wave (group of parallelizable tasks).                                   |
| [`CriticalPathResult`](/packages/core/api/types#criticalpathresult)                                     | interface | Critical path result.                                                             |
| [`CycleResult`](/packages/core/api/types#cycleresult)                                                   | interface | Cycle detection result.                                                           |
| [`TreeNode`](/packages/core/api/types#treenode)                                                         | interface | Tree node representation.                                                         |
| [`CircularDependency`](/packages/core/api/types#circulardependency)                                     | type      | A circular dependency cycle found via DFS traversal.                              |
| [`MissingDependency`](/packages/core/api/types#missingdependency)                                       | interface | A missing dependency reference within an epic.                                    |
| [`DependencyAnalysis`](/packages/core/api/types#dependencyanalysis)                                     | interface | Full dependency analysis result for an epic.                                      |
| [`ContextEstimation`](/packages/core/api/types#contextestimation)                                       | interface | Context estimation result.                                                        |
| [`Wave`](/packages/core/api/types#wave)                                                                 | interface |                                                                                   |
| [`EnrichedWave`](/packages/core/api/types#enrichedwave)                                                 | interface |                                                                                   |
| [`StatusCounts`](/packages/core/api/types#statuscounts)                                                 | interface | Status counts by task state.                                                      |
| [`EpicStatus`](/packages/core/api/types#epicstatus)                                                     | interface | Epic-specific status result.                                                      |
| [`OverallStatus`](/packages/core/api/types#overallstatus)                                               | interface | Overall orchestration status (no specific epic).                                  |
| [`ProgressMetrics`](/packages/core/api/types#progressmetrics)                                           | interface | Progress metrics for orchestration check.                                         |
| [`StartupSummary`](/packages/core/api/types#startupsummary)                                             | interface | Startup summary for an epic.                                                      |
| [`OrchestratorSession`](/packages/core/api/types#orchestratorsession)                                   | interface | Orchestrator session state.                                                       |
| [`SpawnContext`](/packages/core/api/types#spawncontext)                                                 | interface | Spawn context for a subagent.                                                     |
| [`TaskReadiness`](/packages/core/api/types#taskreadiness)                                               | interface | Task readiness assessment.                                                        |
| [`AnalysisResult`](/packages/core/api/types#analysisresult)                                             | interface | Orchestrator analysis result.                                                     |
| [`ArtifactType`](/packages/core/api/types#artifacttype)                                                 | type      | Supported artifact types.                                                         |
| [`ArtifactConfig`](/packages/core/api/types#artifactconfig)                                             | interface | Artifact configuration from release config.                                       |
| [`ArtifactResult`](/packages/core/api/types#artifactresult)                                             | interface | Result of an artifact operation.                                                  |
| [`ArtifactHandler`](/packages/core/api/types#artifacthandler)                                           | interface | Artifact handler interface.                                                       |
| [`ReleaseConfig`](/packages/core/api/types#releaseconfig)                                               | interface | Release configuration shape.                                                      |
| [`ReleaseGate`](/packages/core/api/types#releasegate)                                                   | interface | Release gate definition.                                                          |
| [`GitFlowConfig`](/packages/core/api/types#gitflowconfig)                                               | interface | GitFlow branch configuration.                                                     |
| [`ChannelConfig`](/packages/core/api/types#channelconfig)                                               | interface | Channel-to-branch mapping for npm dist-tag resolution.                            |
| [`PushMode`](/packages/core/api/types#pushmode)                                                         | type      | Push mode: direct push vs PR creation vs auto-detect.                             |
| [`ReleaseChannel`](/packages/core/api/types#releasechannel)                                             | type      | npm dist-tag channel for a release.                                               |
| [`ChannelValidationResult`](/packages/core/api/types#channelvalidationresult)                           | interface | Result of validating a version string against a channel's expectations.           |
| [`CIPlatform`](/packages/core/api/types#ciplatform)                                                     | type      | Supported CI/CD platforms.                                                        |
| [`BranchProtectionResult`](/packages/core/api/types#branchprotectionresult)                             | interface |                                                                                   |
| [`PRCreateOptions`](/packages/core/api/types#prcreateoptions)                                           | interface |                                                                                   |
| [`PRResult`](/packages/core/api/types#prresult)                                                         | interface |                                                                                   |
| [`RepoIdentity`](/packages/core/api/types#repoidentity)                                                 | interface |                                                                                   |
| [`EpicCompletenessResult`](/packages/core/api/types#epiccompletenessresult)                             | interface | Epic completeness result.                                                         |
| [`DoubleListingResult`](/packages/core/api/types#doublelistingresult)                                   | interface | Double-listing check result.                                                      |
| [`BumpType`](/packages/core/api/types#bumptype)                                                         | type      | Bump type for version calculation.                                                |
| [`VersionBumpTarget`](/packages/core/api/types#versionbumptarget)                                       | interface | Version bump target config from .cleo/config.json.                                |
| [`BumpResult`](/packages/core/api/types#bumpresult)                                                     | interface | Bump result for a single file.                                                    |
| [`ReleaseManifest`](/packages/core/api/types#releasemanifest)                                           | interface | Release manifest structure.                                                       |
| [`ReleaseListOptions`](/packages/core/api/types#releaselistoptions)                                     | interface |                                                                                   |
| [`ReleaseTaskRecord`](/packages/core/api/types#releasetaskrecord)                                       | interface | Task record shape needed for release operations.                                  |
| [`ReleaseGateMetadata`](/packages/core/api/types#releasegatemetadata)                                   | interface | Metadata captured during gate evaluation, returned alongside gate results. Do...  |
| [`PushPolicy`](/packages/core/api/types#pushpolicy)                                                     | interface | Push policy configuration from config.release.push.                               |
| [`SnapshotDecision`](/packages/core/api/types#snapshotdecision)                                         | interface | A decision recorded during the session.                                           |
| [`SnapshotObservation`](/packages/core/api/types#snapshotobservation)                                   | interface | Brain observation linked to this session.                                         |
| [`SnapshotTaskContext`](/packages/core/api/types#snapshottaskcontext)                                   | interface | Active task context at snapshot time.                                             |
| [`SessionSnapshot`](/packages/core/api/types#sessionsnapshot)                                           | interface | Complete session snapshot — everything needed to resume.  This is the seriali...  |
| [`SerializeOptions`](/packages/core/api/types#serializeoptions)                                         | interface | Options for serializing a session.                                                |
| [`RestoreOptions`](/packages/core/api/types#restoreoptions)                                             | interface | Options for restoring a session.                                                  |
| [`StickyNoteStatus`](/packages/core/api/types#stickynotestatus)                                         | type      | Sticky note status values.                                                        |
| [`StickyNoteColor`](/packages/core/api/types#stickynotecolor)                                           | type      | Sticky note color options.                                                        |
| [`StickyNotePriority`](/packages/core/api/types#stickynotepriority)                                     | type      | Sticky note priority levels.                                                      |
| [`ConvertedTargetType`](/packages/core/api/types#convertedtargettype)                                   | type      | Converted target type.                                                            |
| [`ConvertedTarget`](/packages/core/api/types#convertedtarget)                                           | interface | Converted target reference.                                                       |
| [`StickyNote`](/packages/core/api/types#stickynote)                                                     | interface | Core sticky note interface.                                                       |
| [`CreateStickyParams`](/packages/core/api/types#createstickyparams)                                     | interface | Parameters for creating a sticky note.                                            |
| [`ListStickiesParams`](/packages/core/api/types#liststickiesparams)                                     | interface | Parameters for listing sticky notes.                                              |
| [`ConvertStickyParams`](/packages/core/api/types#convertstickyparams)                                   | interface | Parameters for converting a sticky note.                                          |
| [`ArchiveTasksOptions`](/packages/core/api/types#archivetasksoptions)                                   | interface | Options for archiving tasks.                                                      |
| [`ArchiveTasksResult`](/packages/core/api/types#archivetasksresult)                                     | interface | Result of archiving tasks.                                                        |
| [`DeleteTaskOptions`](/packages/core/api/types#deletetaskoptions)                                       | interface | Options for deleting a task.                                                      |
| [`DeleteTaskResult`](/packages/core/api/types#deletetaskresult)                                         | interface | Result of deleting a task.                                                        |
| [`EngineResult`](/packages/core/api/types#engineresult)                                                 | interface | Canonical EngineResult type used by all engines and core engine-compat modules.   |
| [`ExportMeta`](/packages/core/api/types#exportmeta)                                                     | interface | Export package metadata.                                                          |
| [`ExportSelection`](/packages/core/api/types#exportselection)                                           | interface | Export selection criteria.                                                        |
| [`IdMapEntry`](/packages/core/api/types#idmapentry)                                                     | interface | ID map entry.                                                                     |
| [`RelationshipGraph`](/packages/core/api/types#relationshipgraph)                                       | interface | Relationship graph.                                                               |
| [`ExportPackage`](/packages/core/api/types#exportpackage)                                               | interface | Complete export package.                                                          |
| [`ExportTasksParams`](/packages/core/api/types#exporttasksparams)                                       | interface |                                                                                   |
| [`ExportTasksResult`](/packages/core/api/types#exporttasksresult)                                       | interface |                                                                                   |
| [`HelpOperationDef`](/packages/core/api/types#helpoperationdef)                                         | interface | Minimal operation definition consumed by help logic.                              |
| [`CostHint`](/packages/core/api/types#costhint)                                                         | type      | Cost hint classification for an operation.                                        |
| [`GroupedOperations`](/packages/core/api/types#groupedoperations)                                       | interface | Domain-grouped operation format (compact).                                        |
| [`VerboseOperation`](/packages/core/api/types#verboseoperation)                                         | interface | Verbose operation entry with cost hints.                                          |
| [`HelpResult`](/packages/core/api/types#helpresult)                                                     | interface | Result of the help computation.                                                   |
| [`TransferMode`](/packages/core/api/types#transfermode)                                                 | type      | Transfer mode: copy keeps source tasks, move archives them.                       |
| [`TransferScope`](/packages/core/api/types#transferscope)                                               | type      | Transfer scope: single task or full subtree.                                      |
| [`TransferOnConflict`](/packages/core/api/types#transferonconflict)                                     | type      | Conflict resolution when target has tasks with duplicate titles.                  |
| [`TransferOnMissingDep`](/packages/core/api/types#transferonmissingdep)                                 | type      | How to handle missing dependencies in the target project.                         |
| [`TransferParams`](/packages/core/api/types#transferparams)                                             | interface | Parameters for a cross-project transfer operation.                                |
| [`TransferManifestEntry`](/packages/core/api/types#transfermanifestentry)                               | interface | A single task entry in the transfer manifest.                                     |
| [`TransferManifest`](/packages/core/api/types#transfermanifest)                                         | interface | Manifest describing what was (or would be) transferred.                           |
| [`TransferResult`](/packages/core/api/types#transferresult)                                             | interface | Result of a transfer operation.                                                   |
| [`ImportFromPackageOptions`](/packages/core/api/types#importfrompackageoptions)                         | interface | Options passed to importFromPackage (extracted from importTasksPackage).          |
| [`ImportFromPackageResult`](/packages/core/api/types#importfrompackageresult)                           | interface | Result from importFromPackage.                                                    |
| [`RemapTable`](/packages/core/api/types#remaptable)                                                     | interface | Forward and reverse remap tables.                                                 |
| [`ImportTasksParams`](/packages/core/api/types#importtasksparams)                                       | interface |                                                                                   |
| [`ImportTasksResult`](/packages/core/api/types#importtasksresult)                                       | interface |                                                                                   |
| [`ValidationError`](/packages/core/api/types#validationerror)                                           | interface |                                                                                   |
| [`ValidationResult`](/packages/core/api/types#validationresult)                                         | interface |                                                                                   |
| [`AdrValidationError`](/packages/core/api/types#adrvalidationerror)                                     | type      | ValidationError — canonical name per ADR-017 spec                                 |
| [`AdrValidationResult`](/packages/core/api/types#adrvalidationresult)                                   | type      | ValidationResult — canonical name per ADR-017 spec                                |
| [`TreeSitterLanguage`](/packages/core/api/types#treesitterlanguage)                                     | type      | Supported tree-sitter language identifiers.                                       |
| [`OutlineNode`](/packages/core/api/types#outlinenode)                                                   | interface | A symbol node in the outline tree, with optional children.                        |
| [`SmartOutlineResult`](/packages/core/api/types#smartoutlineresult)                                     | interface | Result of generating a smart outline for a file.                                  |
| [`SmartSearchResult`](/packages/core/api/types#smartsearchresult)                                       | interface | A search result with relevance score.                                             |
| [`SmartSearchOptions`](/packages/core/api/types#smartsearchoptions)                                     | interface | Options for smart\_search.                                                        |
| [`SmartUnfoldResult`](/packages/core/api/types#smartunfoldresult)                                       | interface | Result of unfolding a single symbol.                                              |
| [`ComplianceJsonlEntry`](/packages/core/api/types#compliancejsonlentry)                                 | type      |                                                                                   |
| [`PayloadValidationResult`](/packages/core/api/types#payloadvalidationresult)                           | interface | Result of payload validation.                                                     |
| [`BuildConfig`](/packages/core/api/types#buildconfig)                                                   | type      |                                                                                   |
| [`RepositoryConfig`](/packages/core/api/types#repositoryconfig)                                         | type      |                                                                                   |
| [`IssueTemplate`](/packages/core/api/types#issuetemplate)                                               | interface | Parsed issue template.                                                            |
| [`AddIssueParams`](/packages/core/api/types#addissueparams)                                             | interface |                                                                                   |
| [`AddIssueResult`](/packages/core/api/types#addissueresult)                                             | interface |                                                                                   |
| [`RetryablePredicate`](/packages/core/api/types#retryablepredicate)                                     | type      | A predicate or pattern used to decide whether an error is retryable.  -...        |
| [`RetryOptions`](/packages/core/api/types#retryoptions)                                                 | interface | Options that control retry behavior for `withRetry`.                              |
| [`RetryContext`](/packages/core/api/types#retrycontext)                                                 | interface | Metadata attached to errors thrown after all retry attempts are exhausted.  T...  |
| [`DecayResult`](/packages/core/api/types#decayresult)                                                   | interface | Result from applying temporal decay.                                              |
| [`ConsolidationResult`](/packages/core/api/types#consolidationresult)                                   | interface | Result from consolidating memories.                                               |
| [`BrainMigrationResult`](/packages/core/api/types#brainmigrationresult)                                 | interface | Result from a migration run.                                                      |
| [`ResearchEntry`](/packages/core/api/types#researchentry)                                               | interface | Research entry attached to a task.                                                |
| [`ManifestEntry`](/packages/core/api/types#manifestentry)                                               | interface | Manifest entry (JSONL line).                                                      |
| [`AddResearchOptions`](/packages/core/api/types#addresearchoptions)                                     | interface | Options for adding research.                                                      |
| [`ListResearchOptions`](/packages/core/api/types#listresearchoptions)                                   | interface | Options for listing research.                                                     |
| [`ManifestQueryOptions`](/packages/core/api/types#manifestqueryoptions)                                 | interface | Manifest query options.                                                           |
| [`ExtendedManifestEntry`](/packages/core/api/types#extendedmanifestentry)                               | interface | Extended manifest entry with optional fields used by the engine.                  |
| [`ResearchFilter`](/packages/core/api/types#researchfilter)                                             | interface | Research filter criteria used by the engine.                                      |
| [`ContradictionDetail`](/packages/core/api/types#contradictiondetail)                                   | interface | Contradiction detail between two manifest entries.                                |
| [`SupersededDetail`](/packages/core/api/types#supersededdetail)                                         | interface | Superseded entry detail.                                                          |
| [`ComplianceSummary`](/packages/core/api/types#compliancesummary)                                       | interface | Compliance summary shape.                                                         |
| [`OtelCaptureMode`](/packages/core/api/types#otelcapturemode)                                           | type      | OTel capture mode.                                                                |
| [`OtelTokenDataPoint`](/packages/core/api/types#oteltokendatapoint)                                     | interface | Token data point parsed from OTel metrics.                                        |
| [`AggregatedTokens`](/packages/core/api/types#aggregatedtokens)                                         | interface | Aggregated token counts.                                                          |
| [`ABVariant`](/packages/core/api/types#abvariant)                                                       | type      | A/B test variant.                                                                 |
| [`ABEventType`](/packages/core/api/types#abeventtype)                                                   | type      | A/B test event types.                                                             |
| [`ABTestSummary`](/packages/core/api/types#abtestsummary)                                               | interface | A/B test summary result.                                                          |
| [`Severity`](/packages/core/api/types#severity)                                                         | enum      | Violation severity levels.                                                        |
| [`ManifestIntegrity`](/packages/core/api/types#manifestintegrity)                                       | enum      | Manifest integrity states.                                                        |
| [`InstructionStability`](/packages/core/api/types#instructionstability)                                 | enum      | Instruction stability levels.                                                     |
| [`SessionDegradation`](/packages/core/api/types#sessiondegradation)                                     | enum      | Session degradation levels.                                                       |
| [`AgentReliability`](/packages/core/api/types#agentreliability)                                         | enum      | Agent reliability levels.                                                         |
| [`MetricCategory`](/packages/core/api/types#metriccategory)                                             | enum      | Metric categories.                                                                |
| [`MetricSource`](/packages/core/api/types#metricsource)                                                 | enum      | Metric sources.                                                                   |
| [`AggregationPeriod`](/packages/core/api/types#aggregationperiod)                                       | enum      | Aggregation periods.                                                              |
| [`TokenEventType`](/packages/core/api/types#tokeneventtype)                                             | type      | Token event types.                                                                |
| [`TokenEvent`](/packages/core/api/types#tokenevent)                                                     | interface | A token usage event entry.                                                        |
| [`TokenSessionSummary`](/packages/core/api/types#tokensessionsummary)                                   | interface | Token session summary shape.                                                      |
| [`VerificationResult`](/packages/core/api/types#verificationresult)                                     | interface | Result of a backup verification operation.                                        |
| [`LogLevel`](/packages/core/api/types#loglevel)                                                         | type      | Log entry severity level                                                          |
| [`MigrationLogEntry`](/packages/core/api/types#migrationlogentry)                                       | interface | Single migration log entry                                                        |
| [`MigrationLoggerConfig`](/packages/core/api/types#migrationloggerconfig)                               | interface | Migration logger configuration                                                    |
| [`PreflightResult`](/packages/core/api/types#preflightresult)                                           | interface | Pre-flight check result.                                                          |
| [`MigrationPhase`](/packages/core/api/types#migrationphase)                                             | type      | Migration phase - tracks current step in the migration process                    |
| [`SourceFileInfo`](/packages/core/api/types#sourcefileinfo)                                             | interface | Source file info with checksum for integrity verification                         |
| [`MigrationProgress`](/packages/core/api/types#migrationprogress)                                       | interface | Migration progress tracking                                                       |
| [`MigrationState`](/packages/core/api/types#migrationstate)                                             | interface | Complete migration state structure                                                |
| [`JsonFileValidation`](/packages/core/api/types#jsonfilevalidation)                                     | interface | Result of validating a single JSON file.                                          |
| [`JsonValidationResult`](/packages/core/api/types#jsonvalidationresult)                                 | interface | Complete validation result for all source files.                                  |
| [`SchemaVersion`](/packages/core/api/types#schemaversion)                                               | interface | Schema version info.                                                              |
| [`MigrationFn`](/packages/core/api/types#migrationfn)                                                   | type      | Migration function signature.                                                     |
| [`MigrationDef`](/packages/core/api/types#migrationdef)                                                 | interface | Migration definition.                                                             |
| [`MigrationResult`](/packages/core/api/types#migrationresult)                                           | interface | Migration run result.                                                             |
| [`MigrationStatus`](/packages/core/api/types#migrationstatus)                                           | interface | Status of all data files.                                                         |
| [`NexusGraphNode`](/packages/core/api/types#nexusgraphnode)                                             | interface |                                                                                   |
| [`NexusGraphEdge`](/packages/core/api/types#nexusgraphedge)                                             | interface |                                                                                   |
| [`NexusGlobalGraph`](/packages/core/api/types#nexusglobalgraph)                                         | interface |                                                                                   |
| [`DepsResult`](/packages/core/api/types#depsresult)                                                     | interface | Result of a dependency query.                                                     |
| [`DepsEntry`](/packages/core/api/types#depsentry)                                                       | interface | Single dependency entry with resolution status.                                   |
| [`CriticalPathResult`](/packages/core/api/types#criticalpathresult)                                     | interface | Critical path result.                                                             |
| [`BlockingAnalysisResult`](/packages/core/api/types#blockinganalysisresult)                             | interface | Blocking analysis result.                                                         |
| [`OrphanEntry`](/packages/core/api/types#orphanentry)                                                   | interface | Orphan detection result.                                                          |
| [`PinoLevel`](/packages/core/api/types#pinolevel)                                                       | type      | Pino log levels as written by CLEO's logger (uppercase).                          |
| [`PinoLogEntry`](/packages/core/api/types#pinologentry)                                                 | interface | A parsed pino log entry from a CLEO log file. Core fields are always present;...  |
| [`LogFileInfo`](/packages/core/api/types#logfileinfo)                                                   | interface | Metadata about a discovered log file.                                             |
| [`LogFilter`](/packages/core/api/types#logfilter)                                                       | interface | Filter criteria for log queries. All fields are optional; when multiple are p...  |
| [`LogQueryResult`](/packages/core/api/types#logqueryresult)                                             | interface | Result of a log query operation.                                                  |
| [`LogDiscoveryOptions`](/packages/core/api/types#logdiscoveryoptions)                                   | interface | Options for discovering log files.                                                |
| [`LogSummary`](/packages/core/api/types#logsummary)                                                     | interface | Summary of log activity across files.                                             |
| [`RemoteConfig`](/packages/core/api/types#remoteconfig)                                                 | interface | Remote configuration.                                                             |
| [`PushResult`](/packages/core/api/types#pushresult)                                                     | interface | Result of a push operation.                                                       |
| [`PullResult`](/packages/core/api/types#pullresult)                                                     | interface | Result of a pull operation.                                                       |
| [`RemoteInfo`](/packages/core/api/types#remoteinfo)                                                     | interface | Result of a remote list operation.                                                |
| [`ExecutionMode`](/packages/core/api/types#executionmode)                                               | type      | Execution mode for an operation                                                   |
| [`GatewayType`](/packages/core/api/types#gatewaytype)                                                   | type      | Gateway type                                                                      |
| [`PreferredChannel`](/packages/core/api/types#preferredchannel)                                         | type      | Preferred communication channel for token efficiency. CLI is the only dispatc...  |
| [`OperationCapability`](/packages/core/api/types#operationcapability)                                   | interface |                                                                                   |
| [`CapabilityReport`](/packages/core/api/types#capabilityreport)                                         | interface | Capability report returned by system.doctor                                       |
| [`RateLimitConfig`](/packages/core/api/types#ratelimitconfig)                                           | interface | Rate limiter configuration                                                        |
| [`RateLimitResult`](/packages/core/api/types#ratelimitresult)                                           | interface | Rate limit check result                                                           |
| [`ContributionDecision`](/packages/core/api/types#contributiondecision)                                 | interface | A contribution decision from an agent.                                            |
| [`ContributionConflict`](/packages/core/api/types#contributionconflict)                                 | interface | Conflict between two agent decisions.                                             |
| [`ConsensusResult`](/packages/core/api/types#consensusresult)                                           | interface | Consensus result from weighted voting.                                            |
| [`SkillsMpConfig`](/packages/core/api/types#skillsmpconfig)                                             | interface | SkillsMP configuration.                                                           |
| [`MarketplaceSkill`](/packages/core/api/types#marketplaceskill)                                         | interface | Marketplace skill result (CLEO-specific shape).                                   |
| [`BatchSpawnEntry`](/packages/core/api/types#batchspawnentry)                                           | interface | Result of a single spawn within a batch.                                          |
| [`BatchSpawnResult`](/packages/core/api/types#batchspawnresult)                                         | interface | Result of a batch spawn operation.                                                |
| [`SessionInitResult`](/packages/core/api/types#sessioninitresult)                                       | interface | Session init result.                                                              |
| [`PauseStatus`](/packages/core/api/types#pausestatus)                                                   | interface | Pause status result.                                                              |
| [`SkillSourceType`](/packages/core/api/types#skillsourcetype)                                           | type      | Source type classification for a skill directory.                                 |
| [`SkillSourceMode`](/packages/core/api/types#skillsourcemode)                                           | type      | Skill source mode.                                                                |
| [`SkillSearchPath`](/packages/core/api/types#skillsearchpath)                                           | interface | Search path entry with its origin.                                                |
| [`IssueSeverity`](/packages/core/api/types#issueseverity)                                               | type      | Validation issue severity.                                                        |
| [`ValidationIssue`](/packages/core/api/types#validationissue)                                           | interface | Single validation issue.                                                          |
| [`SkillValidationResult`](/packages/core/api/types#skillvalidationresult)                               | interface | Validation result for a skill.                                                    |
| [`SnapshotMeta`](/packages/core/api/types#snapshotmeta)                                                 | interface | Snapshot metadata.                                                                |
| [`SnapshotTask`](/packages/core/api/types#snapshottask)                                                 | interface | Portable task representation (subset of Task, omitting local-only fields).        |
| [`Snapshot`](/packages/core/api/types#snapshot)                                                         | interface | Complete snapshot package.                                                        |
| [`ImportResult`](/packages/core/api/types#importresult)                                                 | interface | Import result summary.                                                            |
| [`SpawnCapability`](/packages/core/api/types#spawncapability)                                           | type      | Spawn capability type - subset of provider capabilities related to spawning       |
| [`WorkflowRuleMetric`](/packages/core/api/types#workflowrulemetric)                                     | interface | Per-rule compliance breakdown.                                                    |
| [`WorkflowComplianceReport`](/packages/core/api/types#workflowcompliancereport)                         | interface | Full workflow compliance report.                                                  |
| [`ArchiveMetadata`](/packages/core/api/types#archivemetadata)                                           | interface | Archive metadata that may be attached to archived task records.                   |
| [`AnalyticsTask`](/packages/core/api/types#analyticstask)                                               | interface | Archived task shape used internally for analytics.                                |
| [`ArchiveReportType`](/packages/core/api/types#archivereporttype)                                       | type      |                                                                                   |
| [`SummaryReportData`](/packages/core/api/types#summaryreportdata)                                       | interface | Summary report result.                                                            |
| [`PhaseGroupEntry`](/packages/core/api/types#phasegroupentry)                                           | interface | Phase group entry.                                                                |
| [`LabelFrequencyEntry`](/packages/core/api/types#labelfrequencyentry)                                   | interface | Label frequency entry.                                                            |
| [`PriorityGroupEntry`](/packages/core/api/types#prioritygroupentry)                                     | interface | Priority group entry.                                                             |
| [`CycleTimeDistribution`](/packages/core/api/types#cycletimedistribution)                               | interface | Cycle time distribution buckets.                                                  |
| [`CycleTimePercentiles`](/packages/core/api/types#cycletimepercentiles)                                 | interface | Cycle time percentiles.                                                           |
| [`CycleTimesReportData`](/packages/core/api/types#cycletimesreportdata)                                 | interface | Cycle times report result.                                                        |
| [`DailyArchiveEntry`](/packages/core/api/types#dailyarchiveentry)                                       | interface | Daily archive entry.                                                              |
| [`MonthlyArchiveEntry`](/packages/core/api/types#monthlyarchiveentry)                                   | interface | Monthly archive entry.                                                            |
| [`TrendsReportData`](/packages/core/api/types#trendsreportdata)                                         | interface | Trends report result.                                                             |
| [`EmptyArchiveData`](/packages/core/api/types#emptyarchivedata)                                         | interface | Empty archive sentinel (when totalArchived is 0).                                 |
| [`ArchiveReportDataMap`](/packages/core/api/types#archivereportdatamap)                                 | type      | Union type mapping report types to their data shapes.                             |
| [`ArchiveAnalyticsResult`](/packages/core/api/types#archiveanalyticsresult)                             | interface | The envelope returned by analyzeArchive.                                          |
| [`AnalyzeArchiveOptions`](/packages/core/api/types#analyzearchiveoptions)                               | interface | Options for analyzeArchive.                                                       |
| [`ArchiveStatsResult`](/packages/core/api/types#archivestatsresult)                                     | interface |                                                                                   |
| [`AuditIssue`](/packages/core/api/types#auditissue)                                                     | interface |                                                                                   |
| [`AuditResult`](/packages/core/api/types#auditresult)                                                   | interface |                                                                                   |
| [`BackupResult`](/packages/core/api/types#backupresult)                                                 | interface |                                                                                   |
| [`RestoreResult`](/packages/core/api/types#restoreresult)                                               | interface |                                                                                   |
| [`BackupEntry`](/packages/core/api/types#backupentry)                                                   | interface | A single backup entry returned by listSystemBackups.                              |
| [`CleanupResult`](/packages/core/api/types#cleanupresult)                                               | interface |                                                                                   |
| [`Platform`](/packages/core/api/types#platform)                                                         | type      | Detected platform.                                                                |
| [`SystemInfo`](/packages/core/api/types#systeminfo)                                                     | interface | Structured snapshot of the host system for diagnostics, error reports, and lo...  |
| [`CheckStatus`](/packages/core/api/types#checkstatus)                                                   | type      |                                                                                   |
| [`CheckResult`](/packages/core/api/types#checkresult)                                                   | interface |                                                                                   |
| [`HealthCheck`](/packages/core/api/types#healthcheck)                                                   | interface |                                                                                   |
| [`HealthResult`](/packages/core/api/types#healthresult)                                                 | interface |                                                                                   |
| [`DiagnosticsCheck`](/packages/core/api/types#diagnosticscheck)                                         | interface |                                                                                   |
| [`DiagnosticsResult`](/packages/core/api/types#diagnosticsresult)                                       | interface |                                                                                   |
| [`DoctorCheck`](/packages/core/api/types#doctorcheck)                                                   | interface |                                                                                   |
| [`DoctorReport`](/packages/core/api/types#doctorreport)                                                 | interface |                                                                                   |
| [`FixResult`](/packages/core/api/types#fixresult)                                                       | interface |                                                                                   |
| [`StartupState`](/packages/core/api/types#startupstate)                                                 | type      | Outcome of a startup health check. Tells the caller exactly what state the sy...  |
| [`StartupHealthCheck`](/packages/core/api/types#startuphealthcheck)                                     | interface |                                                                                   |
| [`StartupHealthResult`](/packages/core/api/types#startuphealthresult)                                   | interface |                                                                                   |
| [`InjectGenerateResult`](/packages/core/api/types#injectgenerateresult)                                 | interface |                                                                                   |
| [`LabelsResult`](/packages/core/api/types#labelsresult)                                                 | interface |                                                                                   |
| [`SystemMetricsResult`](/packages/core/api/types#systemmetricsresult)                                   | interface |                                                                                   |
| [`MigrateResult`](/packages/core/api/types#migrateresult)                                               | interface |                                                                                   |
| [`RuntimeDiagnostics`](/packages/core/api/types#runtimediagnostics)                                     | interface |                                                                                   |
| [`SafestopResult`](/packages/core/api/types#safestopresult)                                             | interface |                                                                                   |
| [`UncancelResult`](/packages/core/api/types#uncancelresult)                                             | interface |                                                                                   |
| [`TemplateSection`](/packages/core/api/types#templatesection)                                           | interface | A single section/field within an issue template.                                  |
| [`IssueTemplate`](/packages/core/api/types#issuetemplate)                                               | interface | A parsed issue template.                                                          |
| [`TemplateConfig`](/packages/core/api/types#templateconfig)                                             | interface | The full template config output.                                                  |
| [`TemplateResult`](/packages/core/api/types#templateresult)                                             | interface | Result type for template parser operations.                                       |
| [`ShellType`](/packages/core/api/types#shelltype)                                                       | type      | Supported shell types.                                                            |
| [`ChangelogSection`](/packages/core/api/types#changelogsection)                                         | interface | Grouped changelog sections.                                                       |
| [`CommandMeta`](/packages/core/api/types#commandmeta)                                                   | interface | Parsed command metadata.                                                          |
| [`ParsedFlags`](/packages/core/api/types#parsedflags)                                                   | interface | Parsed flag state.                                                                |
| [`InsertTask`](/packages/core/api/types#inserttask)                                                     | type      |                                                                                   |
| [`SelectTask`](/packages/core/api/types#selecttask)                                                     | type      |                                                                                   |
| [`InsertTaskDependency`](/packages/core/api/types#inserttaskdependency)                                 | type      |                                                                                   |
| [`SelectTaskDependency`](/packages/core/api/types#selecttaskdependency)                                 | type      |                                                                                   |
| [`InsertTaskRelation`](/packages/core/api/types#inserttaskrelation)                                     | type      |                                                                                   |
| [`SelectTaskRelation`](/packages/core/api/types#selecttaskrelation)                                     | type      |                                                                                   |
| [`InsertSession`](/packages/core/api/types#insertsession)                                               | type      |                                                                                   |
| [`SelectSession`](/packages/core/api/types#selectsession)                                               | type      |                                                                                   |
| [`InsertWorkHistory`](/packages/core/api/types#insertworkhistory)                                       | type      |                                                                                   |
| [`SelectWorkHistory`](/packages/core/api/types#selectworkhistory)                                       | type      |                                                                                   |
| [`InsertLifecyclePipeline`](/packages/core/api/types#insertlifecyclepipeline)                           | type      |                                                                                   |
| [`SelectLifecyclePipeline`](/packages/core/api/types#selectlifecyclepipeline)                           | type      |                                                                                   |
| [`InsertLifecycleStage`](/packages/core/api/types#insertlifecyclestage)                                 | type      |                                                                                   |
| [`SelectLifecycleStage`](/packages/core/api/types#selectlifecyclestage)                                 | type      |                                                                                   |
| [`InsertLifecycleGateResult`](/packages/core/api/types#insertlifecyclegateresult)                       | type      |                                                                                   |
| [`SelectLifecycleGateResult`](/packages/core/api/types#selectlifecyclegateresult)                       | type      |                                                                                   |
| [`InsertLifecycleEvidence`](/packages/core/api/types#insertlifecycleevidence)                           | type      |                                                                                   |
| [`SelectLifecycleEvidence`](/packages/core/api/types#selectlifecycleevidence)                           | type      |                                                                                   |
| [`InsertLifecycleTransition`](/packages/core/api/types#insertlifecycletransition)                       | type      |                                                                                   |
| [`SelectLifecycleTransition`](/packages/core/api/types#selectlifecycletransition)                       | type      |                                                                                   |
| [`InsertSchemaMeta`](/packages/core/api/types#insertschemameta)                                         | type      |                                                                                   |
| [`SelectSchemaMeta`](/packages/core/api/types#selectschemameta)                                         | type      |                                                                                   |
| [`InsertAuditLog`](/packages/core/api/types#insertauditlog)                                             | type      |                                                                                   |
| [`SelectAuditLog`](/packages/core/api/types#selectauditlog)                                             | type      |                                                                                   |
| [`AuditLogInsert`](/packages/core/api/types#auditloginsert)                                             | type      | Canonical type alias for audit log insert (T4848).                                |
| [`AuditLogSelect`](/packages/core/api/types#auditlogselect)                                             | type      | Canonical type alias for audit log select (T4848).                                |
| [`InsertTokenUsage`](/packages/core/api/types#inserttokenusage)                                         | type      |                                                                                   |
| [`SelectTokenUsage`](/packages/core/api/types#selecttokenusage)                                         | type      |                                                                                   |
| [`InsertArchitectureDecision`](/packages/core/api/types#insertarchitecturedecision)                     | type      |                                                                                   |
| [`SelectArchitectureDecision`](/packages/core/api/types#selectarchitecturedecision)                     | type      |                                                                                   |
| [`InsertManifestEntry`](/packages/core/api/types#insertmanifestentry)                                   | type      |                                                                                   |
| [`SelectManifestEntry`](/packages/core/api/types#selectmanifestentry)                                   | type      |                                                                                   |
| [`InsertPipelineManifest`](/packages/core/api/types#insertpipelinemanifest)                             | type      |                                                                                   |
| [`SelectPipelineManifest`](/packages/core/api/types#selectpipelinemanifest)                             | type      |                                                                                   |
| [`InsertReleaseManifest`](/packages/core/api/types#insertreleasemanifest)                               | type      |                                                                                   |
| [`SelectReleaseManifest`](/packages/core/api/types#selectreleasemanifest)                               | type      |                                                                                   |
| [`InsertExternalTaskLink`](/packages/core/api/types#insertexternaltasklink)                             | type      |                                                                                   |
| [`SelectExternalTaskLink`](/packages/core/api/types#selectexternaltasklink)                             | type      |                                                                                   |
| [`InsertAgentInstance`](/packages/core/api/types#insertagentinstance)                                   | type      |                                                                                   |
| [`SelectAgentInstance`](/packages/core/api/types#selectagentinstance)                                   | type      |                                                                                   |
| [`InsertAgentErrorLog`](/packages/core/api/types#insertagenterrorlog)                                   | type      |                                                                                   |
| [`SelectAgentErrorLog`](/packages/core/api/types#selectagenterrorlog)                                   | type      |                                                                                   |
| [`ManifestIntegrity`](/packages/core/api/types#manifestintegrity)                                       | type      |                                                                                   |
| [`Severity`](/packages/core/api/types#severity)                                                         | type      |                                                                                   |
| [`ComplianceMetrics`](/packages/core/api/types#compliancemetrics)                                       | interface |                                                                                   |
| [`ManifestEntry`](/packages/core/api/types#manifestentry)                                               | interface |                                                                                   |
| [`TokenMetrics`](/packages/core/api/types#tokenmetrics)                                                 | interface |                                                                                   |
| [`TokenEfficiency`](/packages/core/api/types#tokenefficiency)                                           | interface |                                                                                   |
| [`OrchestrationOverhead`](/packages/core/api/types#orchestrationoverhead)                               | interface |                                                                                   |
| [`DriftIssue`](/packages/core/api/types#driftissue)                                                     | interface |                                                                                   |
| [`DriftReport`](/packages/core/api/types#driftreport)                                                   | interface |                                                                                   |
| [`CommandIndexEntry`](/packages/core/api/types#commandindexentry)                                       | interface |                                                                                   |
| [`CommandIndex`](/packages/core/api/types#commandindex)                                                 | interface |                                                                                   |
| [`SchemaVersions`](/packages/core/api/types#schemaversions)                                             | interface |                                                                                   |
| [`FileHashes`](/packages/core/api/types#filehashes)                                                     | interface |                                                                                   |
| [`ProjectCacheEntry`](/packages/core/api/types#projectcacheentry)                                       | interface |                                                                                   |
| [`DoctorProjectCache`](/packages/core/api/types#doctorprojectcache)                                     | interface |                                                                                   |
| [`ProjectDetail`](/packages/core/api/types#projectdetail)                                               | interface |                                                                                   |
| [`CategorizedProjects`](/packages/core/api/types#categorizedprojects)                                   | interface |                                                                                   |
| [`UserJourneyStage`](/packages/core/api/types#userjourneystage)                                         | type      |                                                                                   |
| [`HealthSummary`](/packages/core/api/types#healthsummary)                                               | interface |                                                                                   |
| [`ValidationError`](/packages/core/api/types#validationerror)                                           | interface |                                                                                   |
| [`ValidationResult`](/packages/core/api/types#validationresult)                                         | interface |                                                                                   |
| [`Task`](/packages/core/api/types#task)                                                                 | interface |                                                                                   |
| [`TaskData`](/packages/core/api/types#taskdata)                                                         | interface | Task data shape for validation functions.                                         |
| [`ArchiveData`](/packages/core/api/types#archivedata)                                                   | interface | Archive data shape for validation functions.                                      |
| [`ComprehensiveValidationResult`](/packages/core/api/types#comprehensivevalidationresult)               | interface |                                                                                   |
| [`ManifestDoc`](/packages/core/api/types#manifestdoc)                                                   | interface |                                                                                   |
| [`GapEntry`](/packages/core/api/types#gapentry)                                                         | interface |                                                                                   |
| [`CoverageEntry`](/packages/core/api/types#coverageentry)                                               | interface |                                                                                   |
| [`GapReport`](/packages/core/api/types#gapreport)                                                       | interface |                                                                                   |
| [`ManifestEntry`](/packages/core/api/types#manifestentry)                                               | interface |                                                                                   |
| [`ManifestViolation`](/packages/core/api/types#manifestviolation)                                       | interface |                                                                                   |
| [`ManifestValidationResult`](/packages/core/api/types#manifestvalidationresult)                         | interface |                                                                                   |
| [`ComplianceEntry`](/packages/core/api/types#complianceentry)                                           | interface |                                                                                   |
| [`ProtocolViolation`](/packages/core/api/types#protocolviolation)                                       | interface |                                                                                   |
| [`ProtocolValidationResult`](/packages/core/api/types#protocolvalidationresult)                         | interface |                                                                                   |
| [`GateName`](/packages/core/api/types#gatename)                                                         | type      |                                                                                   |
| [`AgentName`](/packages/core/api/types#agentname)                                                       | type      |                                                                                   |
| [`FailureLogEntry`](/packages/core/api/types#failurelogentry)                                           | interface |                                                                                   |
| [`VerificationGates`](/packages/core/api/types#verificationgates)                                       | interface |                                                                                   |
| [`Verification`](/packages/core/api/types#verification)                                                 | interface |                                                                                   |
| [`VerificationStatus`](/packages/core/api/types#verificationstatus)                                     | type      |                                                                                   |
| [`CircularValidationResult`](/packages/core/api/types#circularvalidationresult)                         | interface |                                                                                   |
| [`TaskForVerification`](/packages/core/api/types#taskforverification)                                   | interface |                                                                                   |
| [`ProjectInfo`](/packages/core/api/types#projectinfo)                                                   | interface | Fields consumed by logging, audit, and correlation subsystems.                    |
| [`BackfillOptions`](/packages/core/api/types#backfilloptions)                                           | interface | Options for backfillTasks().                                                      |
| [`BackfillTaskChange`](/packages/core/api/types#backfilltaskchange)                                     | interface | Summary of what was (or would be) changed for a single task.                      |
| [`BackfillResult`](/packages/core/api/types#backfillresult)                                             | interface | Overall result returned by backfillTasks().                                       |
| [`RequirementLevel`](/packages/core/api/types#requirementlevel)                                         | type      | RFC 2119 requirement levels                                                       |
| [`ViolationSeverity`](/packages/core/api/types#violationseverity)                                       | type      | Violation severity                                                                |
| [`ProtocolRule`](/packages/core/api/types#protocolrule)                                                 | interface | Protocol rule definition                                                          |
| [`ProtocolViolation`](/packages/core/api/types#protocolviolation)                                       | interface | Protocol violation result                                                         |
| [`ProtocolValidationResult`](/packages/core/api/types#protocolvalidationresult)                         | interface | Protocol validation result                                                        |
| [`ErrorSeverity`](/packages/core/api/types#errorseverity)                                               | enum      | Error severity levels for protocol/gate validation.                               |
| [`ErrorCategory`](/packages/core/api/types#errorcategory)                                               | enum      | Error category for grouping protocol/gate violations.                             |
| [`ProtocolExitCode`](/packages/core/api/types#protocolexitcode)                                         | enum      | Protocol-specific exit codes used by the RCASD-IVTR+C enforcement system.  Th...  |
| [`ProtocolRequest`](/packages/core/api/types#protocolrequest)                                           | interface | Request shape used by the protocol enforcement system. Minimal interface matc...  |
| [`ProtocolResponse`](/packages/core/api/types#protocolresponse)                                         | interface | Response shape used by the protocol enforcement system.                           |
| [`ProtocolType`](/packages/core/api/types#protocoltype)                                                 | enum      | Protocol types aligned with RCASD-IVTR+C lifecycle                                |
| [`ViolationLogEntry`](/packages/core/api/types#violationlogentry)                                       | interface | Violation log entry                                                               |
| [`ChainFindCriteria`](/packages/core/api/types#chainfindcriteria)                                       | interface |                                                                                   |
| [`ProtocolViolation`](/packages/core/api/types#protocolviolation)                                       | interface | Protocol violation entry.                                                         |
| [`ProtocolValidationResult`](/packages/core/api/types#protocolvalidationresult)                         | interface | Protocol validation result.                                                       |
| [`ManifestEntryInput`](/packages/core/api/types#manifestentryinput)                                     | interface | Manifest entry structure for validation.                                          |
| [`ProtocolType`](/packages/core/api/types#protocoltype)                                                 | type      |                                                                                   |
| [`VotingMatrix`](/packages/core/api/types#votingmatrix)                                                 | interface |                                                                                   |
| [`AdrStatus`](/packages/core/api/types#adrstatus)                                                       | type      | ADR lifecycle status values.  T260                                                |
| [`ArchitectureDecisionOptions`](/packages/core/api/types#architecturedecisionoptions)                   | interface | Architecture decision options for validator.                                      |
| [`ValidationStageOptions`](/packages/core/api/types#validationstageoptions)                             | interface | Validation-stage options for validator.                                           |
| [`TestFramework`](/packages/core/api/types#testframework)                                               | type      | Project-agnostic test framework identifiers.  The testing protocol is deliber...  |
| [`TestingOptions`](/packages/core/api/types#testingoptions)                                             | interface | Testing-stage options for validator.                                              |
| [`BrainMaintenanceDecayResult`](/packages/core/api/types#brainmaintenancedecayresult)                   | interface | Temporal decay step result subset used in maintenance output.                     |
| [`BrainMaintenanceConsolidationResult`](/packages/core/api/types#brainmaintenanceconsolidationresult)   | interface | Memory consolidation step result subset used in maintenance output.               |
| [`BrainMaintenanceReconciliationResult`](/packages/core/api/types#brainmaintenancereconciliationresult) | interface | Orphaned reference reconciliation step result.                                    |
| [`BrainMaintenanceEmbeddingsResult`](/packages/core/api/types#brainmaintenanceembeddingsresult)         | interface | Embedding backfill step result.                                                   |
| [`BrainMaintenanceResult`](/packages/core/api/types#brainmaintenanceresult)                             | interface | Aggregated result from a full brain maintenance run.  All counts are zero whe...  |
| [`BrainMaintenanceOptions`](/packages/core/api/types#brainmaintenanceoptions)                           | interface | Options for `runBrainMaintenance`.  All `skip*` flags default to `false` — th...  |
| [`ClaudeMemMigrationResult`](/packages/core/api/types#claudememmigrationresult)                         | interface | Result from a claude-mem migration run.                                           |
| [`ClaudeMemMigrationOptions`](/packages/core/api/types#claudememmigrationoptions)                       | interface | Options for the claude-mem migration.                                             |
| [`BlockerNode`](/packages/core/api/types#blockernode)                                                   | interface |                                                                                   |
| [`CausalTrace`](/packages/core/api/types#causaltrace)                                                   | interface |                                                                                   |
| [`SimilarEntry`](/packages/core/api/types#similarentry)                                                 | interface |                                                                                   |
| [`ManifestEntry`](/packages/core/api/types#manifestentry)                                               | type      |                                                                                   |
| [`ModelProviderLookup`](/packages/core/api/types#modelproviderlookup)                                   | interface |                                                                                   |
| [`TokenMethod`](/packages/core/api/types#tokenmethod)                                                   | type      |                                                                                   |
| [`TokenConfidence`](/packages/core/api/types#tokenconfidence)                                           | type      |                                                                                   |
| [`TokenTransport`](/packages/core/api/types#tokentransport)                                             | type      |                                                                                   |
| [`TokenExchangeInput`](/packages/core/api/types#tokenexchangeinput)                                     | interface |                                                                                   |
| [`TokenMeasurement`](/packages/core/api/types#tokenmeasurement)                                         | interface |                                                                                   |
| [`TokenUsageFilters`](/packages/core/api/types#tokenusagefilters)                                       | interface |                                                                                   |
| [`TokenUsageSummary`](/packages/core/api/types#tokenusagesummary)                                       | interface |                                                                                   |
| [`SkillEntry`](/packages/core/api/types#skillentry)                                                     | interface |                                                                                   |
| [`SkillContent`](/packages/core/api/types#skillcontent)                                                 | interface |                                                                                   |
| [`HighImpactTask`](/packages/core/api/types#highimpacttask)                                             | interface |                                                                                   |
| [`SingleBlockerTask`](/packages/core/api/types#singleblockertask)                                       | interface |                                                                                   |
| [`CommonBlocker`](/packages/core/api/types#commonblocker)                                               | interface |                                                                                   |
| [`UnblockResult`](/packages/core/api/types#unblockresult)                                               | interface |                                                                                   |
| [`ValidationIssue`](/packages/core/api/types#validationissue)                                           | interface |                                                                                   |
| [`SpawnValidationResult`](/packages/core/api/types#spawnvalidationresult)                               | interface |                                                                                   |
| [`ContextInjectionData`](/packages/core/api/types#contextinjectiondata)                                 | interface | Data returned by context injection.                                               |
| [`CancelResult`](/packages/core/api/types#cancelresult)                                                 | interface | Result of a cancel operation.                                                     |
| [`FlatTreeNode`](/packages/core/api/types#flattreenode)                                                 | interface | Tree node representation for task hierarchy.                                      |
| [`ComplexityFactor`](/packages/core/api/types#complexityfactor)                                         | interface | Complexity factor contributing to a task's size estimate.                         |
| [`AnalysisResult`](/packages/core/api/types#analysisresult)                                             | interface |                                                                                   |
| [`StoreEngine`](/packages/core/api/types#storeengine)                                                   | type      | Store engine type. SQLite is the only supported engine (ADR-006).  T4647          |
| [`TaskFilters`](/packages/core/api/types#taskfilters)                                                   | interface | Common task filter options.                                                       |
| [`SessionFilters`](/packages/core/api/types#sessionfilters)                                             | interface | Common session filter options.                                                    |
| [`StoreProvider`](/packages/core/api/types#storeprovider)                                               | interface | Store provider interface. Backed by SQLite (ADR-006 canonical storage).           |
| [`MigrationResult`](/packages/core/api/types#migrationresult)                                           | interface | Migration result.                                                                 |
| [`MigrationOptions`](/packages/core/api/types#migrationoptions)                                         | interface | Options for migration.                                                            |
| [`RepairAction`](/packages/core/api/types#repairaction)                                                 | interface | A single repair action with status.                                               |
| [`UpgradeAction`](/packages/core/api/types#upgradeaction)                                               | interface | A single upgrade action with status.                                              |
| [`UpgradeResult`](/packages/core/api/types#upgraderesult)                                               | interface | Full upgrade result.                                                              |
| [`UpgradeSummary`](/packages/core/api/types#upgradesummary)                                             | interface | Counts of what upgrade checked/applied/skipped.                                   |
| [`DiagnoseFinding`](/packages/core/api/types#diagnosefinding)                                           | interface | A single diagnostic finding from --diagnose.                                      |
| [`DiagnoseResult`](/packages/core/api/types#diagnoseresult)                                             | interface | Result from diagnoseUpgrade().                                                    |
| [`GateLayer`](/packages/core/api/types#gatelayer)                                                       | enum      | Gate layer enumeration                                                            |
| [`GateStatus`](/packages/core/api/types#gatestatus)                                                     | enum      | Gate status for each layer                                                        |
| [`GateViolation`](/packages/core/api/types#gateviolation)                                               | interface | Violation detail for a specific gate layer                                        |
| [`LayerResult`](/packages/core/api/types#layerresult)                                                   | interface | Result from a single gate layer validation                                        |
| [`VerificationResult`](/packages/core/api/types#verificationresult)                                     | interface | Complete verification result across all 4 layers                                  |
| [`OperationContext`](/packages/core/api/types#operationcontext)                                         | interface | Operation context for gate validation                                             |
| [`WorkflowGateName`](/packages/core/api/types#workflowgatename)                                         | enum      | Workflow gate names per protocol specification Section 7.1   T3141                |
| [`WorkflowGateStatus`](/packages/core/api/types#workflowgatestatus)                                     | type      | Workflow gate status values per Section 7.3                                       |
| [`WorkflowGateAgent`](/packages/core/api/types#workflowgateagent)                                       | type      | Agent responsible for each gate per Section 7.2                                   |
| [`WorkflowGateDefinition`](/packages/core/api/types#workflowgatedefinition)                             | interface | Individual workflow gate definition per Section 7.2                               |
| [`WorkflowGateState`](/packages/core/api/types#workflowgatestate)                                       | interface | State of a single workflow gate                                                   |
| [`JsonSchemaType`](/packages/core/api/types#jsonschematype)                                             | type      |                                                                                   |
| [`JsonSchemaProperty`](/packages/core/api/types#jsonschemaproperty)                                     | interface |                                                                                   |
| [`JSONSchemaObject`](/packages/core/api/types#jsonschemaobject)                                         | interface |                                                                                   |
| [`CommanderArgSplit`](/packages/core/api/types#commanderargsplit)                                       | interface |                                                                                   |
| [`ValidationResult`](/packages/core/api/types#validationresult)                                         | interface | Validation result                                                                 |
| [`ValidationError`](/packages/core/api/types#validationerror)                                           | interface | Individual validation error                                                       |
| [`SchemaType`](/packages/core/api/types#schematype)                                                     | type      | Schema types that can be validated via AJV/JSON Schema. SQLite-backed types (...  |
| [`ComplianceEntry`](/packages/core/api/types#complianceentry)                                           | interface | Compliance entry stored in COMPLIANCE.jsonl                                       |
| [`CoherenceIssue`](/packages/core/api/types#coherenceissue)                                             | interface | Coherence issue found during graph validation.                                    |
| [`ValidateCheckDetail`](/packages/core/api/types#validatecheckdetail)                                   | interface |                                                                                   |
| [`ValidateReportResult`](/packages/core/api/types#validatereportresult)                                 | interface |                                                                                   |
| [`ValidateAndFixResult`](/packages/core/api/types#validateandfixresult)                                 | interface | Result from validate + fix operation.                                             |
| [`CriticalPathNode`](/packages/core/api/types#criticalpathnode)                                         | interface |                                                                                   |
| [`CriticalPathResult`](/packages/core/api/types#criticalpathresult)                                     | interface |                                                                                   |
| [`SkillsPrecedenceConfig`](/packages/core/api/types#skillsprecedenceconfig)                             | interface | Configuration for skill precedence resolution across providers.                   |
| [`ResolvedSkillPath`](/packages/core/api/types#resolvedskillpath)                                       | interface | A resolved skill path with full provenance metadata.                              |
| [`SkillInstallationContext`](/packages/core/api/types#skillinstallationcontext)                         | interface | Context for a skill installation operation.                                       |
| [`InProgressEpic`](/packages/core/api/types#inprogressepic)                                             | interface | In-progress epic entry.                                                           |
| [`ReadyTask`](/packages/core/api/types#readytask)                                                       | interface | Ready task entry with leverage analysis.                                          |
| [`BlockedTask`](/packages/core/api/types#blockedtask)                                                   | interface | Blocked task entry.                                                               |
| [`OpenBug`](/packages/core/api/types#openbug)                                                           | interface | Open bug entry.                                                                   |
| [`PlanMetrics`](/packages/core/api/types#planmetrics)                                                   | interface | Planning metrics.                                                                 |
| [`PlanResult`](/packages/core/api/types#planresult)                                                     | interface | Composite planning view result.                                                   |
| [`RcasdIndex`](/packages/core/api/types#rcasdindex)                                                     | interface | RCASD-INDEX.json top-level structure.                                             |
| [`IndexMeta`](/packages/core/api/types#indexmeta)                                                       | interface | Index metadata.                                                                   |
| [`IndexTotals`](/packages/core/api/types#indextotals)                                                   | interface | Aggregate counts.                                                                 |
| [`TaskAnchor`](/packages/core/api/types#taskanchor)                                                     | interface | Task-anchored RCASD artifact reference.                                           |
| [`SpecEntry`](/packages/core/api/types#specentry)                                                       | interface | Specification entry.                                                              |
| [`ReportEntry`](/packages/core/api/types#reportentry)                                                   | interface | Report entry.                                                                     |
| [`PipelineState`](/packages/core/api/types#pipelinestate)                                               | interface | Pipeline state.                                                                   |
| [`PipelineOperation`](/packages/core/api/types#pipelineoperation)                                       | interface | Active pipeline operation.                                                        |
| [`ChangeEntry`](/packages/core/api/types#changeentry)                                                   | interface | Change entry.                                                                     |
| [`ExecutionResult`](/packages/core/api/types#executionresult)                                           | interface | The aggregate result of executing a CANT workflow.                                |
| [`StepResult`](/packages/core/api/types#stepresult)                                                     | interface | The result of a single workflow statement execution.                              |
| [`DiscretionContext`](/packages/core/api/types#discretioncontext)                                       | interface | Context provided to a discretion evaluator for AI-judged conditions.              |
| [`ApprovalTokenStatus`](/packages/core/api/types#approvaltokenstatus)                                   | type      | Valid states for an approval token.                                               |
| [`ApprovalToken`](/packages/core/api/types#approvaltoken)                                               | interface | An approval token for human-in-the-loop workflow gates.  Tokens are bound to...   |
| [`TokenValidation`](/packages/core/api/types#tokenvalidation)                                           | interface | Result of validating an approval token.                                           |
| [`JoinStrategy`](/packages/core/api/types#joinstrategy)                                                 | type      | Join strategy for parallel block execution.                                       |
| [`SettleResult`](/packages/core/api/types#settleresult)                                                 | interface | Result of a parallel block execution with the settle strategy.                    |
| [`ExecutionScope`](/packages/core/api/types#executionscope)                                             | interface | Variable scope for workflow execution.                                            |
| [`DiscretionEvaluator`](/packages/core/api/types#discretionevaluator)                                   | interface | Evaluates a discretion condition and returns a boolean judgment.                  |
| [`ParallelArm`](/packages/core/api/types#parallelarm)                                                   | interface | A single parallel arm to execute.                                                 |
| [`ParallelResult`](/packages/core/api/types#parallelresult)                                             | interface | Result of a parallel block execution.                                             |
| [`WorkflowExecutorConfig`](/packages/core/api/types#workflowexecutorconfig)                             | interface | Configuration options for the workflow executor.                                  |
| [`ResumablePipeline`](/packages/core/api/types#resumablepipeline)                                       | interface | Resumable pipeline information returned to callers.   T4805  T4798                |
| [`PipelineContext`](/packages/core/api/types#pipelinecontext)                                           | interface | Pipeline context for session resume.   T4805                                      |
| [`StageContext`](/packages/core/api/types#stagecontext)                                                 | interface | Stage context within a pipeline.   T4805                                          |
| [`GateResultContext`](/packages/core/api/types#gateresultcontext)                                       | interface | Gate result context.   T4805  T4804                                               |
| [`EvidenceContext`](/packages/core/api/types#evidencecontext)                                           | interface | Evidence context.   T4805  T4804                                                  |
| [`TransitionContext`](/packages/core/api/types#transitioncontext)                                       | interface | Transition context.   T4805                                                       |
| [`TaskContext`](/packages/core/api/types#taskcontext)                                                   | interface | Task context.   T4805                                                             |
| [`ResumeResult`](/packages/core/api/types#resumeresult)                                                 | interface | Result of a resume operation.   T4805                                             |
| [`AutoResumeResult`](/packages/core/api/types#autoresumeresult)                                         | interface | Auto-resume detection result.   T4805                                             |
| [`FindResumableOptions`](/packages/core/api/types#findresumableoptions)                                 | interface | Options for finding resumable pipelines.   T4805                                  |
| [`SessionResumeCheckOptions`](/packages/core/api/types#sessionresumecheckoptions)                       | interface | Options for session start with resume check.   T4805                              |
| [`SessionResumeCheckResult`](/packages/core/api/types#sessionresumecheckresult)                         | interface | Result of session resume check.   T4805                                           |
| [`PrereqCheck`](/packages/core/api/types#prereqcheck)                                                   | interface | Prerequisite check result.   T4800                                                |
| [`TransitionValidation`](/packages/core/api/types#transitionvalidation)                                 | interface | Transition validation result.   T4800                                             |
| [`StageState`](/packages/core/api/types#stagestate)                                                     | interface | Stage state snapshot for state machine.   T4800                                   |
| [`StateMachineContext`](/packages/core/api/types#statemachinecontext)                                   | interface | State machine context for a pipeline.   T4800                                     |
| [`StateTransition`](/packages/core/api/types#statetransition)                                           | interface | State transition request.   T4800                                                 |
| [`StateTransitionResult`](/packages/core/api/types#statetransitionresult)                               | interface | State transition result.   T4800                                                  |
| [`ContextWindowInput`](/packages/core/api/types#contextwindowinput)                                     | interface | Context window input from Claude Code.                                            |
| [`ContextStatus`](/packages/core/api/types#contextstatus)                                               | type      | Context status derived from input.                                                |
| [`HITLLevel`](/packages/core/api/types#hitllevel)                                                       | type      | HITL warning level.                                                               |
| [`HITLWarning`](/packages/core/api/types#hitlwarning)                                                   | interface | HITL warning entry.                                                               |
| [`HITLWarningsResult`](/packages/core/api/types#hitlwarningsresult)                                     | interface | HITL warnings result.                                                             |
| [`StatuslineStatus`](/packages/core/api/types#statuslinestatus)                                         | type      | Statusline integration status.                                                    |
| [`RoutingEntry`](/packages/core/api/types#routingentry)                                                 | interface | Routing entry describing the preferred channel for an operation.  Derived fro...  |
| [`ProviderContext`](/packages/core/api/types#providercontext)                                           | interface | Provider capability context for dynamic skill generation.                         |
| [`IndexMap`](/packages/core/api/types#indexmap)                                                         | type      | Cache index mapping labels/phases to task IDs.                                    |
| [`ImportPackageMeta`](/packages/core/api/types#importpackagemeta)                                       | interface | Import package metadata extracted from the export file.                           |
| [`ImportConflictType`](/packages/core/api/types#importconflicttype)                                     | type      | Import conflict types.                                                            |
| [`ImportConflictResolution`](/packages/core/api/types#importconflictresolution)                         | type      | Import conflict resolution strategies.                                            |
| [`ImportOptions`](/packages/core/api/types#importoptions)                                               | interface | Import options for logging context.                                               |
| [`SortableTask`](/packages/core/api/types#sortabletask)                                                 | interface | Minimal task shape needed for topological sorting.                                |
| [`PipelineStageTaskRow`](/packages/core/api/types#pipelinestagetaskrow)                                 | interface | Row shape for pipeline + stage + task JOIN.                                       |
| [`PipelineStageRow`](/packages/core/api/types#pipelinestagerow)                                         | interface | Row shape for pipeline + stage JOIN.                                              |
| [`InsertProjectRegistry`](/packages/core/api/types#insertprojectregistry)                               | type      |                                                                                   |
| [`SelectProjectRegistry`](/packages/core/api/types#selectprojectregistry)                               | type      |                                                                                   |
| [`InsertNexusAuditLog`](/packages/core/api/types#insertnexusauditlog)                                   | type      |                                                                                   |
| [`SelectNexusAuditLog`](/packages/core/api/types#selectnexusauditlog)                                   | type      |                                                                                   |
| [`InsertNexusSchemaMeta`](/packages/core/api/types#insertnexusschemameta)                               | type      |                                                                                   |
| [`SelectNexusSchemaMeta`](/packages/core/api/types#selectnexusschemameta)                               | type      |                                                                                   |
| [`AtomicityResult`](/packages/core/api/types#atomicityresult)                                           | interface |                                                                                   |
| [`AtomicityCriterion`](/packages/core/api/types#atomicitycriterion)                                     | type      |                                                                                   |
| [`RelatesType`](/packages/core/api/types#relatestype)                                                   | type      | Valid relationship types for relates entries.                                     |
| [`RelatesEntry`](/packages/core/api/types#relatesentry)                                                 | interface | A single relates entry.                                                           |
| [`Severity`](/packages/core/api/types#severity)                                                         | type      | Impact severity levels.                                                           |
| [`DeleteWarning`](/packages/core/api/types#deletewarning)                                               | interface | An impact warning.                                                                |
| [`AffectedTasks`](/packages/core/api/types#affectedtasks)                                               | interface | Affected tasks info.                                                              |
| [`DeleteImpact`](/packages/core/api/types#deleteimpact)                                                 | interface | Impact analysis.                                                                  |
| [`DeletePreview`](/packages/core/api/types#deletepreview)                                               | interface | Full preview result.                                                              |
| [`ChildStrategy`](/packages/core/api/types#childstrategy)                                               | type      | Valid child handling strategies.                                                  |
| [`StrategyResult`](/packages/core/api/types#strategyresult)                                             | interface | Result from a strategy handler.                                                   |
| [`DiscoveryMethod`](/packages/core/api/types#discoverymethod)                                           | type      | Discovery method.                                                                 |
| [`DiscoveryMatch`](/packages/core/api/types#discoverymatch)                                             | interface | A single discovery match.                                                         |
| [`PhaseProgress`](/packages/core/api/types#phaseprogress)                                               | interface | Phase progress information.                                                       |
| [`PhaseTransitionValidation`](/packages/core/api/types#phasetransitionvalidation)                       | interface | Validate a phase transition.                                                      |
| [`StalenessThresholds`](/packages/core/api/types#stalenessthresholds)                                   | interface | Staleness thresholds in days.                                                     |
| [`StalenessLevel`](/packages/core/api/types#stalenesslevel)                                             | type      | Staleness classification.                                                         |
| [`StalenessInfo`](/packages/core/api/types#stalenessinfo)                                               | interface | Staleness assessment for a single task.                                           |
| [`StalenessSummary`](/packages/core/api/types#stalenesssummary)                                         | interface | Get staleness summary statistics.                                                 |

## Other Exports

| Symbol                                                                                                                 | Kind     | Description                                                                         |
| ---------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------- |
| [`logger.ts`](/packages/core/api/functions#loggerts)                                                                   | file     |                                                                                     |
| [`platform-paths.ts`](/packages/core/api/functions#platform-pathsts)                                                   | file     |                                                                                     |
| [`paths.ts`](/packages/core/api/functions#pathsts)                                                                     | file     |                                                                                     |
| [`migration-manager.ts`](/packages/core/api/functions#migration-managerts)                                             | file     |                                                                                     |
| [`sqlite-backup.ts`](/packages/core/api/functions#sqlite-backupts)                                                     | file     |                                                                                     |
| [`status-registry.ts`](/packages/core/api/functions#status-registryts)                                                 | file     |                                                                                     |
| [`AGENT_INSTANCE_STATUSES`](/packages/core/api/functions#agentinstancestatuses)                                        | variable | Agent instance status values matching DB CHECK constraint.                          |
| [`AGENT_TYPES`](/packages/core/api/functions#agenttypes)                                                               | variable | Agent type values for classification.                                               |
| [`agentInstances`](/packages/core/api/functions#agentinstances)                                                        | variable |                                                                                     |
| [`agentErrorLog`](/packages/core/api/functions#agenterrorlog)                                                          | variable |                                                                                     |
| [`agent-schema.ts`](/packages/core/api/functions#agent-schemats)                                                       | file     |                                                                                     |
| [`WARP_CHAIN_INSTANCE_STATUSES`](/packages/core/api/functions#warpchaininstancestatuses)                               | variable | Chain instance status values.                                                       |
| [`warpChains`](/packages/core/api/functions#warpchains)                                                                | variable | Stored WarpChain definitions (serialized as JSON).                                  |
| [`warpChainInstances`](/packages/core/api/functions#warpchaininstances)                                                | variable | Runtime chain instances bound to epics.                                             |
| [`chain-schema.ts`](/packages/core/api/functions#chain-schemats)                                                       | file     |                                                                                     |
| [`TASK_PRIORITIES`](/packages/core/api/functions#taskpriorities)                                                       | variable | Task priorities matching DB CHECK constraint on tasks.priority.                     |
| [`TASK_TYPES`](/packages/core/api/functions#tasktypes)                                                                 | variable | Task types matching DB CHECK constraint on tasks.type.                              |
| [`TASK_SIZES`](/packages/core/api/functions#tasksizes)                                                                 | variable | Task size values matching DB CHECK constraint on tasks.size.                        |
| [`LIFECYCLE_STAGE_NAMES`](/packages/core/api/functions#lifecyclestagenames)                                            | variable | Canonical lifecycle stage names matching DB CHECK constraint on lifecycle\_sta...   |
| [`LIFECYCLE_GATE_RESULTS`](/packages/core/api/functions#lifecyclegateresults)                                          | variable | Gate result values matching DB CHECK constraint on lifecycle\_gate\_results.res...  |
| [`LIFECYCLE_EVIDENCE_TYPES`](/packages/core/api/functions#lifecycleevidencetypes)                                      | variable | Evidence type values matching DB CHECK constraint on lifecycle\_evidence.type.      |
| [`TOKEN_USAGE_METHODS`](/packages/core/api/functions#tokenusagemethods)                                                | variable | Token measurement methods for central token telemetry.                              |
| [`TOKEN_USAGE_CONFIDENCE`](/packages/core/api/functions#tokenusageconfidence)                                          | variable | Confidence levels for token measurements.                                           |
| [`TOKEN_USAGE_TRANSPORTS`](/packages/core/api/functions#tokenusagetransports)                                          | variable | Transport types for token telemetry.                                                |
| [`TASK_RELATION_TYPES`](/packages/core/api/functions#taskrelationtypes)                                                | variable | Task relation types matching DB CHECK constraint on task\_relations.relation\_t...  |
| [`LIFECYCLE_TRANSITION_TYPES`](/packages/core/api/functions#lifecycletransitiontypes)                                  | variable | Lifecycle transition types matching DB CHECK constraint on lifecycle\_transiti...   |
| [`EXTERNAL_LINK_TYPES`](/packages/core/api/functions#externallinktypes)                                                | variable | External task link types matching DB constraint on external\_task\_links.link\_t... |
| [`SYNC_DIRECTIONS`](/packages/core/api/functions#syncdirections)                                                       | variable | Sync direction types matching DB constraint on external\_task\_links.sync\_direc... |
| [`tasks`](/packages/core/api/functions#tasks)                                                                          | variable |                                                                                     |
| [`taskDependencies`](/packages/core/api/functions#taskdependencies)                                                    | variable |                                                                                     |
| [`taskRelations`](/packages/core/api/functions#taskrelations)                                                          | variable |                                                                                     |
| [`sessions`](/packages/core/api/functions#sessions)                                                                    | variable |                                                                                     |
| [`taskWorkHistory`](/packages/core/api/functions#taskworkhistory)                                                      | variable |                                                                                     |
| [`lifecyclePipelines`](/packages/core/api/functions#lifecyclepipelines)                                                | variable |                                                                                     |
| [`lifecycleStages`](/packages/core/api/functions#lifecyclestages)                                                      | variable |                                                                                     |
| [`lifecycleGateResults`](/packages/core/api/functions#lifecyclegateresults)                                            | variable |                                                                                     |
| [`lifecycleEvidence`](/packages/core/api/functions#lifecycleevidence)                                                  | variable |                                                                                     |
| [`lifecycleTransitions`](/packages/core/api/functions#lifecycletransitions)                                            | variable |                                                                                     |
| [`manifestEntries`](/packages/core/api/functions#manifestentries)                                                      | variable |                                                                                     |
| [`pipelineManifest`](/packages/core/api/functions#pipelinemanifest)                                                    | variable |                                                                                     |
| [`releaseManifests`](/packages/core/api/functions#releasemanifests)                                                    | variable |                                                                                     |
| [`schemaMeta`](/packages/core/api/functions#schemameta)                                                                | variable |                                                                                     |
| [`auditLog`](/packages/core/api/functions#auditlog)                                                                    | variable | Task change audit log — stores every add/update/complete/delete/archive opera...    |
| [`tokenUsage`](/packages/core/api/functions#tokenusage)                                                                | variable | Central provider-aware token telemetry for CLI and external adapters. Stores...     |
| [`architectureDecisions`](/packages/core/api/functions#architecturedecisions)                                          | variable | Architecture Decision Records (ADRs) stored in the database. Corresponds to t...    |
| [`adrTaskLinks`](/packages/core/api/functions#adrtasklinks)                                                            | variable | ADR-to-Task links (soft FK — tasks can be purged)                                   |
| [`adrRelations`](/packages/core/api/functions#adrrelations)                                                            | variable | ADR cross-reference relationships                                                   |
| [`externalTaskLinks`](/packages/core/api/functions#externaltasklinks)                                                  | variable | Tracks links between CLEO tasks and external system tasks (Linear, Jira, GitH...    |
| [`statusRegistryTable`](/packages/core/api/functions#statusregistrytable)                                              | variable |                                                                                     |
| [`tasks-schema.ts`](/packages/core/api/functions#tasks-schemats)                                                       | file     |                                                                                     |
| [`BRAIN_DECISION_TYPES`](/packages/core/api/functions#braindecisiontypes)                                              | variable | Decision types from ADR-009.                                                        |
| [`BRAIN_CONFIDENCE_LEVELS`](/packages/core/api/functions#brainconfidencelevels)                                        | variable | Confidence levels for decisions.                                                    |
| [`BRAIN_OUTCOME_TYPES`](/packages/core/api/functions#brainoutcometypes)                                                | variable | Outcome types for decision tracking.                                                |
| [`BRAIN_PATTERN_TYPES`](/packages/core/api/functions#brainpatterntypes)                                                | variable | Pattern types for workflow analysis.                                                |
| [`BRAIN_IMPACT_LEVELS`](/packages/core/api/functions#brainimpactlevels)                                                | variable | Impact levels for patterns.                                                         |
| [`BRAIN_LINK_TYPES`](/packages/core/api/functions#brainlinktypes)                                                      | variable | Link types for cross-referencing BRAIN entries with tasks.                          |
| [`BRAIN_OBSERVATION_TYPES`](/packages/core/api/functions#brainobservationtypes)                                        | variable | Observation types for claude-mem compatible observations.                           |
| [`BRAIN_OBSERVATION_SOURCE_TYPES`](/packages/core/api/functions#brainobservationsourcetypes)                           | variable | Source types for observations (how the observation was created).                    |
| [`BRAIN_MEMORY_TYPES`](/packages/core/api/functions#brainmemorytypes)                                                  | variable | Memory entity types for the links table.                                            |
| [`BRAIN_STICKY_STATUSES`](/packages/core/api/functions#brainstickystatuses)                                            | variable | Sticky note status values.                                                          |
| [`BRAIN_STICKY_COLORS`](/packages/core/api/functions#brainstickycolors)                                                | variable | Sticky note colors.                                                                 |
| [`BRAIN_STICKY_PRIORITIES`](/packages/core/api/functions#brainstickypriorities)                                        | variable | Sticky note priority levels.                                                        |
| [`brainDecisions`](/packages/core/api/functions#braindecisions)                                                        | variable |                                                                                     |
| [`brainPatterns`](/packages/core/api/functions#brainpatterns)                                                          | variable |                                                                                     |
| [`brainLearnings`](/packages/core/api/functions#brainlearnings)                                                        | variable |                                                                                     |
| [`brainObservations`](/packages/core/api/functions#brainobservations)                                                  | variable | General-purpose observations — replaces claude-mem's observations table.            |
| [`brainStickyNotes`](/packages/core/api/functions#brainstickynotes)                                                    | variable | Ephemeral sticky notes for quick capture before formal classification.              |
| [`brainMemoryLinks`](/packages/core/api/functions#brainmemorylinks)                                                    | variable | Cross-references between BRAIN entries and tasks in tasks.db.                       |
| [`brainSchemaMeta`](/packages/core/api/functions#brainschemameta)                                                      | variable |                                                                                     |
| [`BRAIN_NODE_TYPES`](/packages/core/api/functions#brainnodetypes)                                                      | variable | Node types for PageIndex graph.                                                     |
| [`BRAIN_EDGE_TYPES`](/packages/core/api/functions#brainedgetypes)                                                      | variable | Edge types for PageIndex graph.                                                     |
| [`brainPageNodes`](/packages/core/api/functions#brainpagenodes)                                                        | variable | Documents/concepts as graph nodes for cross-document linking.                       |
| [`brainPageEdges`](/packages/core/api/functions#brainpageedges)                                                        | variable | Directed links between graph nodes.                                                 |
| [`brain-schema.ts`](/packages/core/api/functions#brain-schemats)                                                       | file     |                                                                                     |
| [`BRAIN_SCHEMA_VERSION`](/packages/core/api/functions#brainschemaversion)                                              | variable | Schema version for newly created brain databases. Single source of truth.           |
| [`brain-sqlite.ts`](/packages/core/api/functions#brain-sqlitets)                                                       | file     |                                                                                     |
| [`projectRegistry`](/packages/core/api/functions#projectregistry)                                                      | variable | Central registry of all CLEO projects known to the Nexus.                           |
| [`nexusAuditLog`](/packages/core/api/functions#nexusauditlog)                                                          | variable | Append-only audit log for all Nexus operations across projects.                     |
| [`nexusSchemaMeta`](/packages/core/api/functions#nexusschemameta)                                                      | variable | Key-value store for nexus.db schema versioning and metadata.                        |
| [`nexus-schema.ts`](/packages/core/api/functions#nexus-schemats)                                                       | file     |                                                                                     |
| [`NEXUS_SCHEMA_VERSION`](/packages/core/api/functions#nexusschemaversion)                                              | variable | Schema version for newly created nexus databases. Single source of truth.           |
| [`nexus-sqlite.ts`](/packages/core/api/functions#nexus-sqlitets)                                                       | file     |                                                                                     |
| [`SQLITE_SCHEMA_VERSION`](/packages/core/api/functions#sqliteschemaversion)                                            | variable | Schema version for newly created databases. Single source of truth.                 |
| [`sqlite.ts`](/packages/core/api/functions#sqlitets)                                                                   | file     |                                                                                     |
| [`parsers.ts`](/packages/core/api/functions#parsersts)                                                                 | file     |                                                                                     |
| [`converters.ts`](/packages/core/api/functions#convertersts)                                                           | file     |                                                                                     |
| [`SIGNALDOCK_SCHEMA_VERSION`](/packages/core/api/functions#signaldockschemaversion)                                    | variable | Schema version for signaldock databases.                                            |
| [`signaldock-sqlite.ts`](/packages/core/api/functions#signaldock-sqlitets)                                             | file     |                                                                                     |
| [`cross-db-cleanup.ts`](/packages/core/api/functions#cross-db-cleanupts)                                               | file     |                                                                                     |
| [`ERROR_CATALOG`](/packages/core/api/functions#errorcatalog)                                                           | variable | The unified error catalog. Keyed by numeric ExitCode value.                         |
| [`error-catalog.ts`](/packages/core/api/functions#error-catalogts)                                                     | file     |                                                                                     |
| [`errors.ts`](/packages/core/api/functions#errorsts)                                                                   | file     |                                                                                     |
| [`db-helpers.ts`](/packages/core/api/functions#db-helpersts)                                                           | file     |                                                                                     |
| [`registry.ts`](/packages/core/api/functions#registryts)                                                               | file     |                                                                                     |
| [`sqlite-data-accessor.ts`](/packages/core/api/functions#sqlite-data-accessorts)                                       | file     |                                                                                     |
| [`atomic.ts`](/packages/core/api/functions#atomicts)                                                                   | file     |                                                                                     |
| [`backup.ts`](/packages/core/api/functions#backupts)                                                                   | file     |                                                                                     |
| [`lock.ts`](/packages/core/api/functions#lockts)                                                                       | file     |                                                                                     |
| [`INTERNAL_HOOK_EVENTS`](/packages/core/api/functions#internalhookevents)                                              | variable | CLEO-local coordination events used by the autonomous runtime.  These are int...    |
| [`CLEO_TO_CAAMP_HOOK_MAP`](/packages/core/api/functions#cleotocaamphookmap)                                            | variable | Mapping from CLEO internal lifecycle events to CAAMP canonical hook event nam...    |
| [`CLEO_INTERNAL_HOOK_MAP`](/packages/core/api/functions#cleointernalhookmap)                                           | variable | Internal CLEO lifecycle events that drive autonomous coordination.                  |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`hooks`](/packages/core/api/functions#hooks)                                                                          | variable | Singleton instance of the HookRegistry.  Use this instance for all hook opera...    |
| [`registry.ts`](/packages/core/api/functions#registryts)                                                               | file     |                                                                                     |
| [`json.ts`](/packages/core/api/functions#jsonts)                                                                       | file     |                                                                                     |
| [`git-checkpoint.ts`](/packages/core/api/functions#git-checkpointts)                                                   | file     |                                                                                     |
| [`data-safety-central.ts`](/packages/core/api/functions#data-safety-centralts)                                         | file     |                                                                                     |
| [`safety-data-accessor.ts`](/packages/core/api/functions#safety-data-accessorts)                                       | file     |                                                                                     |
| [`data-accessor.ts`](/packages/core/api/functions#data-accessorts)                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`data-safety.ts`](/packages/core/api/functions#data-safetyts)                                                         | file     |                                                                                     |
| [`task-store.ts`](/packages/core/api/functions#task-storets)                                                           | file     |                                                                                     |
| [`mvi-helpers.ts`](/packages/core/api/functions#mvi-helpersts)                                                         | file     |                                                                                     |
| [`show.ts`](/packages/core/api/functions#showts)                                                                       | file     |                                                                                     |
| [`pagination.ts`](/packages/core/api/functions#paginationts)                                                           | file     |                                                                                     |
| [`list.ts`](/packages/core/api/functions#listts)                                                                       | file     |                                                                                     |
| [`find.ts`](/packages/core/api/functions#findts)                                                                       | file     |                                                                                     |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`parse.ts`](/packages/core/api/functions#parsets)                                                                     | file     |                                                                                     |
| [`link-pipeline.ts`](/packages/core/api/functions#link-pipelinets)                                                     | file     |                                                                                     |
| [`sync.ts`](/packages/core/api/functions#syncts)                                                                       | file     |                                                                                     |
| [`evidence.ts`](/packages/core/api/functions#evidencets)                                                               | file     |                                                                                     |
| [`rcasd-paths.ts`](/packages/core/api/functions#rcasd-pathsts)                                                         | file     |                                                                                     |
| [`frontmatter.ts`](/packages/core/api/functions#frontmatterts)                                                         | file     |                                                                                     |
| [`PIPELINE_STAGES`](/packages/core/api/functions#pipelinestages)                                                       | variable |                                                                                     |
| [`CONTRIBUTION_STAGE`](/packages/core/api/functions#contributionstage)                                                 | variable | Cross-cutting contribution stage. Not part of the pipeline execution order, b...    |
| [`STAGE_DEFINITIONS`](/packages/core/api/functions#stagedefinitions)                                                   | variable | Canonical stage definitions with complete metadata.   T4800  T4799 - Replaces...    |
| [`STAGE_ORDER`](/packages/core/api/functions#stageorder)                                                               | variable | Stage order mapping for quick lookups.   T4800                                      |
| [`STAGE_PREREQUISITES`](/packages/core/api/functions#stageprerequisites)                                               | variable | Prerequisites for each stage - which stages must be completed before entering...    |
| [`TRANSITION_RULES`](/packages/core/api/functions#transitionrules)                                                     | variable | Allowed transitions between stages.  By default, stages progress linearly. Th...    |
| [`STAGE_COUNT`](/packages/core/api/functions#stagecount)                                                               | variable | Total number of stages in the pipeline.   T4800                                     |
| [`FIRST_STAGE`](/packages/core/api/functions#firststage)                                                               | variable | First stage in the pipeline.   T4800                                                |
| [`LAST_STAGE`](/packages/core/api/functions#laststage)                                                                 | variable | Last stage in the pipeline.   T4800                                                 |
| [`PLANNING_STAGES`](/packages/core/api/functions#planningstages)                                                       | variable | Planning stages.   T4800                                                            |
| [`DECISION_STAGES`](/packages/core/api/functions#decisionstages)                                                       | variable | Decision stages.   T4800                                                            |
| [`EXECUTION_STAGES`](/packages/core/api/functions#executionstages)                                                     | variable | Execution stages (canonical).   T4800                                               |
| [`VALIDATION_STAGES`](/packages/core/api/functions#validationstages)                                                   | variable | Validation stages.   T4800                                                          |
| [`DELIVERY_STAGES`](/packages/core/api/functions#deliverystages)                                                       | variable | Delivery stages.   T4800                                                            |
| [`stages.ts`](/packages/core/api/functions#stagests)                                                                   | file     |                                                                                     |
| [`stage-artifacts.ts`](/packages/core/api/functions#stage-artifactsts)                                                 | file     |                                                                                     |
| [`SKILL_NAME_MAP`](/packages/core/api/functions#skillnamemap)                                                          | variable | Canonical skill name mapping (user-friendly to ct-prefixed).                        |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`discovery.ts`](/packages/core/api/functions#discoveryts)                                                             | file     |                                                                                     |
| [`token.ts`](/packages/core/api/functions#tokents)                                                                     | file     |                                                                                     |
| [`dispatch.ts`](/packages/core/api/functions#dispatchts)                                                               | file     |                                                                                     |
| [`STAGE_SKILL_MAP`](/packages/core/api/functions#stageskillmap)                                                        | variable | Canonical mapping from RCASD-IVTR+C pipeline stages to the primary skill that...    |
| [`TIER_0_SKILLS`](/packages/core/api/functions#tier0skills)                                                            | variable | Tier 0 skills — always loaded alongside the stage-specific skill.  -...             |
| [`stage-guidance.ts`](/packages/core/api/functions#stage-guidancets)                                                   | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`THRESHOLDS`](/packages/core/api/functions#thresholds)                                                                | variable | Context alert thresholds (percentage of context window).                            |
| [`context-alert.ts`](/packages/core/api/functions#context-alertts)                                                     | file     |                                                                                     |
| [`output.ts`](/packages/core/api/functions#outputts)                                                                   | file     |                                                                                     |
| [`error-registry.ts`](/packages/core/api/functions#error-registryts)                                                   | file     |                                                                                     |
| [`test-db-helper.ts`](/packages/core/api/functions#test-db-helperts)                                                   | file     |                                                                                     |
| [`hierarchy.ts`](/packages/core/api/functions#hierarchyts)                                                             | file     |                                                                                     |
| [`ENFORCEMENT_PROFILES`](/packages/core/api/functions#enforcementprofiles)                                             | variable |                                                                                     |
| [`hierarchy-policy.ts`](/packages/core/api/functions#hierarchy-policyts)                                               | file     |                                                                                     |
| [`STRICTNESS_PRESETS`](/packages/core/api/functions#strictnesspresets)                                                 | variable | All three strictness presets.  strict   — block on missing AC, require sessio...    |
| [`config.ts`](/packages/core/api/functions#configts)                                                                   | file     |                                                                                     |
| [`handler-helpers.ts`](/packages/core/api/functions#handler-helpersts)                                                 | file     |                                                                                     |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`decisions.ts`](/packages/core/api/functions#decisionsts)                                                             | file     |                                                                                     |
| [`handoff.ts`](/packages/core/api/functions#handoffts)                                                                 | file     |                                                                                     |
| [`brain-accessor.ts`](/packages/core/api/functions#brain-accessorts)                                                   | file     |                                                                                     |
| [`typed-query.ts`](/packages/core/api/functions#typed-queryts)                                                         | file     |                                                                                     |
| [`brain-row-types.ts`](/packages/core/api/functions#brain-row-typests)                                                 | file     |                                                                                     |
| [`embedding-local.ts`](/packages/core/api/functions#embedding-localts)                                                 | file     |                                                                                     |
| [`EMBEDDING_DIMENSIONS`](/packages/core/api/functions#embeddingdimensions)                                             | variable | Matches the brain\_embeddings vec0 table: FLOAT\[384].                              |
| [`brain-embedding.ts`](/packages/core/api/functions#brain-embeddingts)                                                 | file     |                                                                                     |
| [`brain-similarity.ts`](/packages/core/api/functions#brain-similarityts)                                               | file     |                                                                                     |
| [`brain-search.ts`](/packages/core/api/functions#brain-searchts)                                                       | file     |                                                                                     |
| [`memory-bridge.ts`](/packages/core/api/functions#memory-bridgets)                                                     | file     |                                                                                     |
| [`memory-bridge-refresh.ts`](/packages/core/api/functions#memory-bridge-refreshts)                                     | file     |                                                                                     |
| [`brain-retrieval.ts`](/packages/core/api/functions#brain-retrievalts)                                                 | file     |                                                                                     |
| [`audit.ts`](/packages/core/api/functions#auditts)                                                                     | file     |                                                                                     |
| [`learnings.ts`](/packages/core/api/functions#learningsts)                                                             | file     |                                                                                     |
| [`session-grade.ts`](/packages/core/api/functions#session-gradets)                                                     | file     |                                                                                     |
| [`adapter-registry.ts`](/packages/core/api/functions#adapter-registryts)                                               | file     |                                                                                     |
| [`discovery.ts`](/packages/core/api/functions#discoveryts)                                                             | file     |                                                                                     |
| [`manager.ts`](/packages/core/api/functions#managerts)                                                                 | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`session-memory-bridge.ts`](/packages/core/api/functions#session-memory-bridgets)                                     | file     |                                                                                     |
| [`decisions.ts`](/packages/core/api/functions#decisionsts)                                                             | file     |                                                                                     |
| [`patterns.ts`](/packages/core/api/functions#patternsts)                                                               | file     |                                                                                     |
| [`auto-extract.ts`](/packages/core/api/functions#auto-extractts)                                                       | file     |                                                                                     |
| [`session-hooks.ts`](/packages/core/api/functions#session-hooksts)                                                     | file     |                                                                                     |
| [`task-hooks.ts`](/packages/core/api/functions#task-hooksts)                                                           | file     |                                                                                     |
| [`error-hooks.ts`](/packages/core/api/functions#error-hooksts)                                                         | file     |                                                                                     |
| [`file-hooks.ts`](/packages/core/api/functions#file-hooksts)                                                           | file     |                                                                                     |
| [`notification-hooks.ts`](/packages/core/api/functions#notification-hooksts)                                           | file     |                                                                                     |
| [`work-capture-hooks.ts`](/packages/core/api/functions#work-capture-hooksts)                                           | file     |                                                                                     |
| [`agent-hooks.ts`](/packages/core/api/functions#agent-hooksts)                                                         | file     |                                                                                     |
| [`context-hooks.ts`](/packages/core/api/functions#context-hooksts)                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`assumptions.ts`](/packages/core/api/functions#assumptionsts)                                                         | file     |                                                                                     |
| [`brain-links.ts`](/packages/core/api/functions#brain-linksts)                                                         | file     |                                                                                     |
| [`session-memory.ts`](/packages/core/api/functions#session-memoryts)                                                   | file     |                                                                                     |
| [`deps-ready.ts`](/packages/core/api/functions#deps-readyts)                                                           | file     |                                                                                     |
| [`pipeline.ts`](/packages/core/api/functions#pipelinets)                                                               | file     |                                                                                     |
| [`briefing.ts`](/packages/core/api/functions#briefingts)                                                               | file     |                                                                                     |
| [`find.ts`](/packages/core/api/functions#findts)                                                                       | file     |                                                                                     |
| [`session-archive.ts`](/packages/core/api/functions#session-archivets)                                                 | file     |                                                                                     |
| [`session-cleanup.ts`](/packages/core/api/functions#session-cleanupts)                                                 | file     |                                                                                     |
| [`session-drift.ts`](/packages/core/api/functions#session-driftts)                                                     | file     |                                                                                     |
| [`session-history.ts`](/packages/core/api/functions#session-historyts)                                                 | file     |                                                                                     |
| [`session-show.ts`](/packages/core/api/functions#session-showts)                                                       | file     |                                                                                     |
| [`session-stats.ts`](/packages/core/api/functions#session-statsts)                                                     | file     |                                                                                     |
| [`session-suspend.ts`](/packages/core/api/functions#session-suspendts)                                                 | file     |                                                                                     |
| [`session-switch.ts`](/packages/core/api/functions#session-switchts)                                                   | file     |                                                                                     |
| [`session-view.ts`](/packages/core/api/functions#session-viewts)                                                       | file     |                                                                                     |
| [`provider-detection.ts`](/packages/core/api/functions#provider-detectionts)                                           | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`session-enforcement.ts`](/packages/core/api/functions#session-enforcementts)                                         | file     |                                                                                     |
| [`enforcement.ts`](/packages/core/api/functions#enforcementts)                                                         | file     |                                                                                     |
| [`TASK_PIPELINE_STAGES`](/packages/core/api/functions#taskpipelinestages)                                              | variable | Ordered pipeline stages (RCASD-IVTR+C). This matches lifecycle/stages.ts PIPE...    |
| [`pipeline-stage.ts`](/packages/core/api/functions#pipeline-stagets)                                                   | file     |                                                                                     |
| [`EPIC_MIN_AC`](/packages/core/api/functions#epicminac)                                                                | variable | Minimum acceptance criteria count required for epic creation in strict mode.        |
| [`TASK_MIN_AC`](/packages/core/api/functions#taskminac)                                                                | variable | Minimum acceptance criteria count for regular tasks.                                |
| [`epic-enforcement.ts`](/packages/core/api/functions#epic-enforcementts)                                               | file     |                                                                                     |
| [`VALID_PRIORITIES`](/packages/core/api/functions#validpriorities)                                                     | variable | Valid string priority values.                                                       |
| [`add.ts`](/packages/core/api/functions#addts)                                                                         | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`audit-prune.ts`](/packages/core/api/functions#audit-prunets)                                                         | file     |                                                                                     |
| [`hash.ts`](/packages/core/api/functions#hashts)                                                                       | file     |                                                                                     |
| [`json-schema-validator.ts`](/packages/core/api/functions#json-schema-validatorts)                                     | file     |                                                                                     |
| [`schema-management.ts`](/packages/core/api/functions#schema-managementts)                                             | file     |                                                                                     |
| [`schema-integrity.ts`](/packages/core/api/functions#schema-integrityts)                                               | file     |                                                                                     |
| [`project-detect.ts`](/packages/core/api/functions#project-detectts)                                                   | file     |                                                                                     |
| [`injection.ts`](/packages/core/api/functions#injectionts)                                                             | file     |                                                                                     |
| [`REQUIRED_CLEO_SUBDIRS`](/packages/core/api/functions#requiredcleosubdirs)                                            | variable | Required subdirectories under .cleo/.                                               |
| [`CLEO_GITIGNORE_FALLBACK`](/packages/core/api/functions#cleogitignorefallback)                                        | variable | Embedded fallback for .cleo/.gitignore content (deny-by-default).                   |
| [`REQUIRED_GLOBAL_SUBDIRS`](/packages/core/api/functions#requiredglobalsubdirs)                                        | variable | Required subdirectories under the global \~/.cleo/ home. These are infrastruct...   |
| [`STALE_GLOBAL_ENTRIES`](/packages/core/api/functions#staleglobalentries)                                              | variable | Stale entries that must NOT exist at the global \~/.cleo/ level. These were pr...   |
| [`scaffold.ts`](/packages/core/api/functions#scaffoldts)                                                               | file     |                                                                                     |
| [`discovery.ts`](/packages/core/api/functions#discoveryts)                                                             | file     |                                                                                     |
| [`MANAGED_HOOKS`](/packages/core/api/functions#managedhooks)                                                           | variable | Git hooks managed by CLEO.                                                          |
| [`hooks.ts`](/packages/core/api/functions#hooksts)                                                                     | file     |                                                                                     |
| [`agent-outputs.ts`](/packages/core/api/functions#agent-outputsts)                                                     | file     |                                                                                     |
| [`migrate-json-to-sqlite.ts`](/packages/core/api/functions#migrate-json-to-sqlitets)                                   | file     |                                                                                     |
| [`registry.ts`](/packages/core/api/functions#registryts)                                                               | file     |                                                                                     |
| [`stack.ts`](/packages/core/api/functions#stackts)                                                                     | file     |                                                                                     |
| [`architecture.ts`](/packages/core/api/functions#architecturets)                                                       | file     |                                                                                     |
| [`structure.ts`](/packages/core/api/functions#structurets)                                                             | file     |                                                                                     |
| [`conventions.ts`](/packages/core/api/functions#conventionsts)                                                         | file     |                                                                                     |
| [`testing.ts`](/packages/core/api/functions#testingts)                                                                 | file     |                                                                                     |
| [`integrations.ts`](/packages/core/api/functions#integrationsts)                                                       | file     |                                                                                     |
| [`concerns.ts`](/packages/core/api/functions#concernsts)                                                               | file     |                                                                                     |
| [`store.ts`](/packages/core/api/functions#storets)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`init.ts`](/packages/core/api/functions#initts)                                                                       | file     |                                                                                     |
| [`bootstrap.ts`](/packages/core/api/functions#bootstrapts)                                                             | file     |                                                                                     |
| [`caamp-init.ts`](/packages/core/api/functions#caamp-initts)                                                           | file     |                                                                                     |
| [`export.ts`](/packages/core/api/functions#exportts)                                                                   | file     |                                                                                     |
| [`import.ts`](/packages/core/api/functions#importts)                                                                   | file     |                                                                                     |
| [`execution-learning.ts`](/packages/core/api/functions#execution-learningts)                                           | file     |                                                                                     |
| [`MAX_TASKS_PER_AGENT`](/packages/core/api/functions#maxtasksperagent)                                                 | variable | Maximum number of tasks that can be concurrently assigned to one agent. Used...     |
| [`agent-registry.ts`](/packages/core/api/functions#agent-registryts)                                                   | file     |                                                                                     |
| [`capacity.ts`](/packages/core/api/functions#capacityts)                                                               | file     |                                                                                     |
| [`HEARTBEAT_INTERVAL_MS`](/packages/core/api/functions#heartbeatintervalms)                                            | variable | Default heartbeat interval (30 seconds) per BRAIN spec.                             |
| [`STALE_THRESHOLD_MS`](/packages/core/api/functions#stalethresholdms)                                                  | variable | Default staleness threshold: 3 minutes without a heartbeat.                         |
| [`health-monitor.ts`](/packages/core/api/functions#health-monitorts)                                                   | file     |                                                                                     |
| [`DEFAULT_RETRY_POLICY`](/packages/core/api/functions#defaultretrypolicy)                                              | variable | Default retry policy matching the BRAIN specification.                              |
| [`retry.ts`](/packages/core/api/functions#retryts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`prediction.ts`](/packages/core/api/functions#predictionts)                                                           | file     |                                                                                     |
| [`adaptive-validation.ts`](/packages/core/api/functions#adaptive-validationts)                                         | file     |                                                                                     |
| [`dependency-check.ts`](/packages/core/api/functions#dependency-checkts)                                               | file     |                                                                                     |
| [`graph-ops.ts`](/packages/core/api/functions#graph-opsts)                                                             | file     |                                                                                     |
| [`impact.ts`](/packages/core/api/functions#impactts)                                                                   | file     |                                                                                     |
| [`patterns.ts`](/packages/core/api/functions#patternsts)                                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`query.ts`](/packages/core/api/functions#queryts)                                                                     | file     |                                                                                     |
| [`discover.ts`](/packages/core/api/functions#discoverts)                                                               | file     |                                                                                     |
| [`permissions.ts`](/packages/core/api/functions#permissionsts)                                                         | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`getTaskHistory`](/packages/core/api/functions#gettaskhistory)                                                        | variable | Get task work history (canonical verb alias for dispatch layer).  T5323             |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`complete.ts`](/packages/core/api/functions#completets)                                                               | file     |                                                                                     |
| [`validation-rules.ts`](/packages/core/api/functions#validation-rulests)                                               | file     |                                                                                     |
| [`update.ts`](/packages/core/api/functions#updatets)                                                                   | file     |                                                                                     |
| [`workspace.ts`](/packages/core/api/functions#workspacets)                                                             | file     |                                                                                     |
| [`deps.ts`](/packages/core/api/functions#depsts)                                                                       | file     |                                                                                     |
| [`analyze.ts`](/packages/core/api/functions#analyzets)                                                                 | file     |                                                                                     |
| [`context.ts`](/packages/core/api/functions#contextts)                                                                 | file     |                                                                                     |
| [`hierarchy.ts`](/packages/core/api/functions#hierarchyts)                                                             | file     |                                                                                     |
| [`waves.ts`](/packages/core/api/functions#wavests)                                                                     | file     |                                                                                     |
| [`status.ts`](/packages/core/api/functions#statusts)                                                                   | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`link-store.ts`](/packages/core/api/functions#link-storets)                                                           | file     |                                                                                     |
| [`reconciliation-engine.ts`](/packages/core/api/functions#reconciliation-enginets)                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`artifacts.ts`](/packages/core/api/functions#artifactsts)                                                             | file     |                                                                                     |
| [`changelog-writer.ts`](/packages/core/api/functions#changelog-writerts)                                               | file     |                                                                                     |
| [`release-config.ts`](/packages/core/api/functions#release-configts)                                                   | file     |                                                                                     |
| [`channel.ts`](/packages/core/api/functions#channelts)                                                                 | file     |                                                                                     |
| [`SUPPORTED_PLATFORMS`](/packages/core/api/functions#supportedplatforms)                                               | variable | All supported platforms.                                                            |
| [`ci.ts`](/packages/core/api/functions#cits)                                                                           | file     |                                                                                     |
| [`github-pr.ts`](/packages/core/api/functions#github-prts)                                                             | file     |                                                                                     |
| [`guards.ts`](/packages/core/api/functions#guardsts)                                                                   | file     |                                                                                     |
| [`version-bump.ts`](/packages/core/api/functions#version-bumpts)                                                       | file     |                                                                                     |
| [`release-manifest.ts`](/packages/core/api/functions#release-manifestts)                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`SNAPSHOT_VERSION`](/packages/core/api/functions#snapshotversion)                                                     | variable | Version of the snapshot schema. Increment on breaking changes.                      |
| [`snapshot.ts`](/packages/core/api/functions#snapshotts)                                                               | file     |                                                                                     |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`archive.ts`](/packages/core/api/functions#archivets)                                                                 | file     |                                                                                     |
| [`convert.ts`](/packages/core/api/functions#convertts)                                                                 | file     |                                                                                     |
| [`id.ts`](/packages/core/api/functions#idts)                                                                           | file     |                                                                                     |
| [`create.ts`](/packages/core/api/functions#createts)                                                                   | file     |                                                                                     |
| [`list.ts`](/packages/core/api/functions#listts)                                                                       | file     |                                                                                     |
| [`purge.ts`](/packages/core/api/functions#purgets)                                                                     | file     |                                                                                     |
| [`show.ts`](/packages/core/api/functions#showts)                                                                       | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`archive.ts`](/packages/core/api/functions#archivets)                                                                 | file     |                                                                                     |
| [`delete.ts`](/packages/core/api/functions#deletets)                                                                   | file     |                                                                                     |
| [`cleo.ts`](/packages/core/api/functions#cleots)                                                                       | file     |                                                                                     |
| [`CORE_PROTECTED_FILES`](/packages/core/api/functions#coreprotectedfiles)                                              | variable | Configuration files relative to .cleo/ that MUST remain tracked by project gi...    |
| [`constants.ts`](/packages/core/api/functions#constantsts)                                                             | file     |                                                                                     |
| [`engine-result.ts`](/packages/core/api/functions#engine-resultts)                                                     | file     |                                                                                     |
| [`export.ts`](/packages/core/api/functions#exportts)                                                                   | file     |                                                                                     |
| [`export-tasks.ts`](/packages/core/api/functions#export-tasksts)                                                       | file     |                                                                                     |
| [`help.ts`](/packages/core/api/functions#helpts)                                                                       | file     |                                                                                     |
| [`transfer-types.ts`](/packages/core/api/functions#transfer-typests)                                                   | file     |                                                                                     |
| [`import-remap.ts`](/packages/core/api/functions#import-remapts)                                                       | file     |                                                                                     |
| [`import-tasks.ts`](/packages/core/api/functions#import-tasksts)                                                       | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`find.ts`](/packages/core/api/functions#findts)                                                                       | file     |                                                                                     |
| [`list.ts`](/packages/core/api/functions#listts)                                                                       | file     |                                                                                     |
| [`show.ts`](/packages/core/api/functions#showts)                                                                       | file     |                                                                                     |
| [`validate.ts`](/packages/core/api/functions#validatets)                                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`adapter.ts`](/packages/core/api/functions#adapterts)                                                                 | file     |                                                                                     |
| [`capability-check.ts`](/packages/core/api/functions#capability-checkts)                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`SUPPORTED_EXTENSIONS`](/packages/core/api/functions#supportedextensions)                                             | variable | All supported file extensions.                                                      |
| [`SUPPORTED_LANGUAGES`](/packages/core/api/functions#supportedlanguages)                                               | variable | All supported languages.                                                            |
| [`tree-sitter-languages.ts`](/packages/core/api/functions#tree-sitter-languagests)                                     | file     |                                                                                     |
| [`parser.ts`](/packages/core/api/functions#parserts)                                                                   | file     |                                                                                     |
| [`outline.ts`](/packages/core/api/functions#outlinets)                                                                 | file     |                                                                                     |
| [`search.ts`](/packages/core/api/functions#searchts)                                                                   | file     |                                                                                     |
| [`unfold.ts`](/packages/core/api/functions#unfoldts)                                                                   | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`store.ts`](/packages/core/api/functions#storets)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`conduit-client.ts`](/packages/core/api/functions#conduit-clientts)                                                   | file     |                                                                                     |
| [`http-transport.ts`](/packages/core/api/functions#http-transportts)                                                   | file     |                                                                                     |
| [`local-transport.ts`](/packages/core/api/functions#local-transportts)                                                 | file     |                                                                                     |
| [`sse-transport.ts`](/packages/core/api/functions#sse-transportts)                                                     | file     |                                                                                     |
| [`factory.ts`](/packages/core/api/functions#factoryts)                                                                 | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`HookPayloadSchema`](/packages/core/api/functions#hookpayloadschema)                                                  | variable | Zod schema for `HookPayload`.                                                       |
| [`SessionStartPayloadSchema`](/packages/core/api/functions#sessionstartpayloadschema)                                  | variable | Zod schema for `SessionStartPayload`.                                               |
| [`OnSessionStartPayloadSchema`](/packages/core/api/functions#onsessionstartpayloadschema)                              | variable |                                                                                     |
| [`SessionEndPayloadSchema`](/packages/core/api/functions#sessionendpayloadschema)                                      | variable | Zod schema for `SessionEndPayload`.                                                 |
| [`OnSessionEndPayloadSchema`](/packages/core/api/functions#onsessionendpayloadschema)                                  | variable |                                                                                     |
| [`PreToolUsePayloadSchema`](/packages/core/api/functions#pretoolusepayloadschema)                                      | variable | Zod schema for `PreToolUsePayload`.                                                 |
| [`OnToolStartPayloadSchema`](/packages/core/api/functions#ontoolstartpayloadschema)                                    | variable |                                                                                     |
| [`PostToolUsePayloadSchema`](/packages/core/api/functions#posttoolusepayloadschema)                                    | variable | Zod schema for `PostToolUsePayload`.                                                |
| [`OnToolCompletePayloadSchema`](/packages/core/api/functions#ontoolcompletepayloadschema)                              | variable |                                                                                     |
| [`NotificationPayloadSchema`](/packages/core/api/functions#notificationpayloadschema)                                  | variable | Zod schema for `NotificationPayload`.                                               |
| [`OnFileChangePayloadSchema`](/packages/core/api/functions#onfilechangepayloadschema)                                  | variable |                                                                                     |
| [`PostToolUseFailurePayloadSchema`](/packages/core/api/functions#posttoolusefailurepayloadschema)                      | variable | Zod schema for `PostToolUseFailurePayload`.                                         |
| [`OnErrorPayloadSchema`](/packages/core/api/functions#onerrorpayloadschema)                                            | variable |                                                                                     |
| [`PromptSubmitPayloadSchema`](/packages/core/api/functions#promptsubmitpayloadschema)                                  | variable | Zod schema for `PromptSubmitPayload`.                                               |
| [`OnPromptSubmitPayloadSchema`](/packages/core/api/functions#onpromptsubmitpayloadschema)                              | variable |                                                                                     |
| [`ResponseCompletePayloadSchema`](/packages/core/api/functions#responsecompletepayloadschema)                          | variable | Zod schema for `ResponseCompletePayload`.                                           |
| [`OnResponseCompletePayloadSchema`](/packages/core/api/functions#onresponsecompletepayloadschema)                      | variable |                                                                                     |
| [`SubagentStartPayloadSchema`](/packages/core/api/functions#subagentstartpayloadschema)                                | variable | Zod schema for `SubagentStartPayload`.                                              |
| [`SubagentStopPayloadSchema`](/packages/core/api/functions#subagentstoppayloadschema)                                  | variable | Zod schema for `SubagentStopPayload`.                                               |
| [`PreCompactPayloadSchema`](/packages/core/api/functions#precompactpayloadschema)                                      | variable | Zod schema for `PreCompactPayload`.                                                 |
| [`PostCompactPayloadSchema`](/packages/core/api/functions#postcompactpayloadschema)                                    | variable | Zod schema for `PostCompactPayload`.                                                |
| [`ConfigChangePayloadSchema`](/packages/core/api/functions#configchangepayloadschema)                                  | variable | Zod schema for `ConfigChangePayload`.                                               |
| [`OnWorkAvailablePayloadSchema`](/packages/core/api/functions#onworkavailablepayloadschema)                            | variable | Zod schema for `OnWorkAvailablePayload`.                                            |
| [`OnAgentSpawnPayloadSchema`](/packages/core/api/functions#onagentspawnpayloadschema)                                  | variable | Zod schema for `OnAgentSpawnPayload`.                                               |
| [`OnAgentCompletePayloadSchema`](/packages/core/api/functions#onagentcompletepayloadschema)                            | variable | Zod schema for `OnAgentCompletePayload`.                                            |
| [`OnCascadeStartPayloadSchema`](/packages/core/api/functions#oncascadestartpayloadschema)                              | variable | Zod schema for `OnCascadeStartPayload`.                                             |
| [`OnPatrolPayloadSchema`](/packages/core/api/functions#onpatrolpayloadschema)                                          | variable | Zod schema for `OnPatrolPayload`.                                                   |
| [`payload-schemas.ts`](/packages/core/api/functions#payload-schemasts)                                                 | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`BUILD_CONFIG`](/packages/core/api/functions#buildconfig)                                                             | variable | BUILD CONFIGURATION - AUTO-GENERATED FILE  This file is generated by dev/gene...    |
| [`build-config.ts`](/packages/core/api/functions#build-configts)                                                       | file     |                                                                                     |
| [`diagnostics.ts`](/packages/core/api/functions#diagnosticsts)                                                         | file     |                                                                                     |
| [`template-parser.ts`](/packages/core/api/functions#template-parserts)                                                 | file     |                                                                                     |
| [`create.ts`](/packages/core/api/functions#createts)                                                                   | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`retry.ts`](/packages/core/api/functions#retryts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`brain-lifecycle.ts`](/packages/core/api/functions#brain-lifecyclets)                                                 | file     |                                                                                     |
| [`brain-migration.ts`](/packages/core/api/functions#brain-migrationts)                                                 | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     | Research commands and manifest operations.    T4465  T4454                          |
| [`common.ts`](/packages/core/api/functions#commonts)                                                                   | file     |                                                                                     |
| [`otel-integration.ts`](/packages/core/api/functions#otel-integrationts)                                               | file     |                                                                                     |
| [`ab-test.ts`](/packages/core/api/functions#ab-testts)                                                                 | file     |                                                                                     |
| [`aggregation.ts`](/packages/core/api/functions#aggregationts)                                                         | file     |                                                                                     |
| [`enums.ts`](/packages/core/api/functions#enumsts)                                                                     | file     |                                                                                     |
| [`token-estimation.ts`](/packages/core/api/functions#token-estimationts)                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`checksum.ts`](/packages/core/api/functions#checksumts)                                                               | file     |                                                                                     |
| [`logger.ts`](/packages/core/api/functions#loggerts)                                                                   | file     |                                                                                     |
| [`storage-preflight.ts`](/packages/core/api/functions#storage-preflightts)                                             | file     |                                                                                     |
| [`preflight.ts`](/packages/core/api/functions#preflightts)                                                             | file     |                                                                                     |
| [`state.ts`](/packages/core/api/functions#statets)                                                                     | file     |                                                                                     |
| [`validate.ts`](/packages/core/api/functions#validatets)                                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`deps.ts`](/packages/core/api/functions#depsts)                                                                       | file     |                                                                                     |
| [`transfer.ts`](/packages/core/api/functions#transferts)                                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`PINO_LEVEL_VALUES`](/packages/core/api/functions#pinolevelvalues)                                                    | variable | Numeric pino level values for comparison.                                           |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`log-filter.ts`](/packages/core/api/functions#log-filterts)                                                           | file     |                                                                                     |
| [`log-parser.ts`](/packages/core/api/functions#log-parserts)                                                           | file     |                                                                                     |
| [`log-reader.ts`](/packages/core/api/functions#log-readerts)                                                           | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`phase.ts`](/packages/core/api/functions#phasets)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`capability-matrix.ts`](/packages/core/api/functions#capability-matrixts)                                             | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`id-generator.ts`](/packages/core/api/functions#id-generatorts)                                                       | file     |                                                                                     |
| [`VALID_DOMAINS`](/packages/core/api/functions#validdomains)                                                           | variable | Known enum values for CLEO domains                                                  |
| [`VALID_GATEWAYS`](/packages/core/api/functions#validgateways)                                                         | variable |                                                                                     |
| [`VALID_MANIFEST_STATUSES`](/packages/core/api/functions#validmanifeststatuses)                                        | variable |                                                                                     |
| [`VALID_LIFECYCLE_STAGE_STATUSES`](/packages/core/api/functions#validlifecyclestagestatuses)                           | variable |                                                                                     |
| [`ALL_VALID_STATUSES`](/packages/core/api/functions#allvalidstatuses)                                                  | variable |                                                                                     |
| [`VALID_PRIORITIES`](/packages/core/api/functions#validpriorities)                                                     | variable |                                                                                     |
| [`DEFAULT_RATE_LIMITS`](/packages/core/api/functions#defaultratelimits)                                                | variable | Default rate limit configurations per operation type                                |
| [`input-sanitization.ts`](/packages/core/api/functions#input-sanitizationts)                                           | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`config.ts`](/packages/core/api/functions#configts)                                                                   | file     |                                                                                     |
| [`install.ts`](/packages/core/api/functions#installts)                                                                 | file     |                                                                                     |
| [`registry.ts`](/packages/core/api/functions#registryts)                                                               | file     |                                                                                     |
| [`subagent.ts`](/packages/core/api/functions#subagentts)                                                               | file     |                                                                                     |
| [`install.ts`](/packages/core/api/functions#installts)                                                                 | file     |                                                                                     |
| [`contribution.ts`](/packages/core/api/functions#contributionts)                                                       | file     |                                                                                     |
| [`research.ts`](/packages/core/api/functions#researchts)                                                               | file     |                                                                                     |
| [`resolver.ts`](/packages/core/api/functions#resolverts)                                                               | file     |                                                                                     |
| [`marketplace.ts`](/packages/core/api/functions#marketplacets)                                                         | file     |                                                                                     |
| [`spawn.ts`](/packages/core/api/functions#spawnts)                                                                     | file     |                                                                                     |
| [`startup.ts`](/packages/core/api/functions#startupts)                                                                 | file     |                                                                                     |
| [`validator.ts`](/packages/core/api/functions#validatorts)                                                             | file     |                                                                                     |
| [`skill-paths.ts`](/packages/core/api/functions#skill-pathsts)                                                         | file     |                                                                                     |
| [`test-utility.ts`](/packages/core/api/functions#test-utilityts)                                                       | file     |                                                                                     |
| [`validation.ts`](/packages/core/api/functions#validationts)                                                           | file     |                                                                                     |
| [`version.ts`](/packages/core/api/functions#versionts)                                                                 | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`spawnRegistry`](/packages/core/api/functions#spawnregistry)                                                          | variable | Singleton registry instance.  Use this instance for all spawn adapter registr...    |
| [`adapter-registry.ts`](/packages/core/api/functions#adapter-registryts)                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`workflow-telemetry.ts`](/packages/core/api/functions#workflow-telemetryts)                                           | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`archive-analytics.ts`](/packages/core/api/functions#archive-analyticsts)                                             | file     |                                                                                     |
| [`archive-stats.ts`](/packages/core/api/functions#archive-statsts)                                                     | file     |                                                                                     |
| [`audit.ts`](/packages/core/api/functions#auditts)                                                                     | file     |                                                                                     |
| [`backup.ts`](/packages/core/api/functions#backupts)                                                                   | file     |                                                                                     |
| [`cleanup.ts`](/packages/core/api/functions#cleanupts)                                                                 | file     |                                                                                     |
| [`file-utils.ts`](/packages/core/api/functions#file-utilsts)                                                           | file     |                                                                                     |
| [`PLATFORM`](/packages/core/api/functions#platform)                                                                    | variable | Cached platform value.                                                              |
| [`MINIMUM_NODE_MAJOR`](/packages/core/api/functions#minimumnodemajor)                                                  | variable | Minimum required Node.js major version.                                             |
| [`platform.ts`](/packages/core/api/functions#platformts)                                                               | file     |                                                                                     |
| [`checks.ts`](/packages/core/api/functions#checksts)                                                                   | file     |                                                                                     |
| [`health.ts`](/packages/core/api/functions#healthts)                                                                   | file     |                                                                                     |
| [`inject-generate.ts`](/packages/core/api/functions#inject-generatets)                                                 | file     |                                                                                     |
| [`labels.ts`](/packages/core/api/functions#labelsts)                                                                   | file     |                                                                                     |
| [`metrics.ts`](/packages/core/api/functions#metricsts)                                                                 | file     |                                                                                     |
| [`migrate.ts`](/packages/core/api/functions#migratets)                                                                 | file     |                                                                                     |
| [`runtime.ts`](/packages/core/api/functions#runtimets)                                                                 | file     |                                                                                     |
| [`safestop.ts`](/packages/core/api/functions#safestopts)                                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`parser.ts`](/packages/core/api/functions#parserts)                                                                   | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`ALIASES_VERSION`](/packages/core/api/functions#aliasesversion)                                                       | variable | Current alias version.                                                              |
| [`aliases.ts`](/packages/core/api/functions#aliasests)                                                                 | file     |                                                                                     |
| [`changelog.ts`](/packages/core/api/functions#changelogts)                                                             | file     |                                                                                     |
| [`command-registry.ts`](/packages/core/api/functions#command-registryts)                                               | file     |                                                                                     |
| [`flags.ts`](/packages/core/api/functions#flagsts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`taskStatusSchema`](/packages/core/api/functions#taskstatusschema)                                                    | variable | Zod enum schema for task statuses.                                                  |
| [`taskPrioritySchema`](/packages/core/api/functions#taskpriorityschema)                                                | variable | Zod enum schema for task priorities.                                                |
| [`taskTypeSchema`](/packages/core/api/functions#tasktypeschema)                                                        | variable | Zod enum schema for task types.                                                     |
| [`taskSizeSchema`](/packages/core/api/functions#tasksizeschema)                                                        | variable | Zod enum schema for task sizes.                                                     |
| [`sessionStatusSchema`](/packages/core/api/functions#sessionstatusschema)                                              | variable | Zod enum schema for session statuses.                                               |
| [`lifecyclePipelineStatusSchema`](/packages/core/api/functions#lifecyclepipelinestatusschema)                          | variable | Zod enum schema for lifecycle pipeline statuses.                                    |
| [`lifecycleStageStatusSchema`](/packages/core/api/functions#lifecyclestagestatusschema)                                | variable | Zod enum schema for lifecycle stage statuses.                                       |
| [`lifecycleStageNameSchema`](/packages/core/api/functions#lifecyclestagenameschema)                                    | variable | Zod enum schema for lifecycle stage names.                                          |
| [`lifecycleGateResultSchema`](/packages/core/api/functions#lifecyclegateresultschema)                                  | variable | Zod enum schema for lifecycle gate results.                                         |
| [`lifecycleEvidenceTypeSchema`](/packages/core/api/functions#lifecycleevidencetypeschema)                              | variable | Zod enum schema for lifecycle evidence types.                                       |
| [`adrStatusSchema`](/packages/core/api/functions#adrstatusschema)                                                      | variable | Zod enum schema for ADR statuses.                                                   |
| [`gateStatusSchema`](/packages/core/api/functions#gatestatusschema)                                                    | variable | Zod enum schema for gate statuses.                                                  |
| [`manifestStatusSchema`](/packages/core/api/functions#manifeststatusschema)                                            | variable | Zod enum schema for manifest statuses.                                              |
| [`tokenUsageMethodSchema`](/packages/core/api/functions#tokenusagemethodschema)                                        | variable | Zod enum schema for token usage measurement methods.                                |
| [`tokenUsageConfidenceSchema`](/packages/core/api/functions#tokenusageconfidenceschema)                                | variable | Zod enum schema for token usage confidence levels.                                  |
| [`tokenUsageTransportSchema`](/packages/core/api/functions#tokenusagetransportschema)                                  | variable | Zod enum schema for token usage transports.                                         |
| [`taskRelationTypeSchema`](/packages/core/api/functions#taskrelationtypeschema)                                        | variable | Zod enum schema for task relation types.                                            |
| [`externalLinkTypeSchema`](/packages/core/api/functions#externallinktypeschema)                                        | variable | Zod enum schema for external task link types.                                       |
| [`syncDirectionSchema`](/packages/core/api/functions#syncdirectionschema)                                              | variable | Zod enum schema for sync directions.                                                |
| [`lifecycleTransitionTypeSchema`](/packages/core/api/functions#lifecycletransitiontypeschema)                          | variable | Zod enum schema for lifecycle transition types.                                     |
| [`brainObservationTypeSchema`](/packages/core/api/functions#brainobservationtypeschema)                                | variable | Zod enum schema for brain observation types.                                        |
| [`brainObservationSourceTypeSchema`](/packages/core/api/functions#brainobservationsourcetypeschema)                    | variable | Zod enum schema for brain observation source types.                                 |
| [`brainDecisionTypeSchema`](/packages/core/api/functions#braindecisiontypeschema)                                      | variable | Zod enum schema for brain decision types.                                           |
| [`brainConfidenceLevelSchema`](/packages/core/api/functions#brainconfidencelevelschema)                                | variable | Zod enum schema for brain confidence levels.                                        |
| [`brainOutcomeTypeSchema`](/packages/core/api/functions#brainoutcometypeschema)                                        | variable | Zod enum schema for brain outcome types.                                            |
| [`brainPatternTypeSchema`](/packages/core/api/functions#brainpatterntypeschema)                                        | variable | Zod enum schema for brain pattern types.                                            |
| [`brainImpactLevelSchema`](/packages/core/api/functions#brainimpactlevelschema)                                        | variable | Zod enum schema for brain impact levels.                                            |
| [`brainLinkTypeSchema`](/packages/core/api/functions#brainlinktypeschema)                                              | variable | Zod enum schema for brain link types.                                               |
| [`brainMemoryTypeSchema`](/packages/core/api/functions#brainmemorytypeschema)                                          | variable | Zod enum schema for brain memory entity types.                                      |
| [`brainStickyStatusSchema`](/packages/core/api/functions#brainstickystatusschema)                                      | variable | Zod enum schema for brain sticky note statuses.                                     |
| [`brainStickyColorSchema`](/packages/core/api/functions#brainstickycolorschema)                                        | variable | Zod enum schema for brain sticky note colors.                                       |
| [`brainStickyPrioritySchema`](/packages/core/api/functions#brainstickypriorityschema)                                  | variable | Zod enum schema for brain sticky note priorities.                                   |
| [`brainNodeTypeSchema`](/packages/core/api/functions#brainnodetypeschema)                                              | variable | Zod enum schema for brain page node types.                                          |
| [`brainEdgeTypeSchema`](/packages/core/api/functions#brainedgetypeschema)                                              | variable | Zod enum schema for brain page edge types.                                          |
| [`insertTaskSchema`](/packages/core/api/functions#inserttaskschema)                                                    | variable |                                                                                     |
| [`selectTaskSchema`](/packages/core/api/functions#selecttaskschema)                                                    | variable |                                                                                     |
| [`insertTaskDependencySchema`](/packages/core/api/functions#inserttaskdependencyschema)                                | variable |                                                                                     |
| [`selectTaskDependencySchema`](/packages/core/api/functions#selecttaskdependencyschema)                                | variable |                                                                                     |
| [`insertTaskRelationSchema`](/packages/core/api/functions#inserttaskrelationschema)                                    | variable |                                                                                     |
| [`selectTaskRelationSchema`](/packages/core/api/functions#selecttaskrelationschema)                                    | variable |                                                                                     |
| [`insertSessionSchema`](/packages/core/api/functions#insertsessionschema)                                              | variable |                                                                                     |
| [`selectSessionSchema`](/packages/core/api/functions#selectsessionschema)                                              | variable |                                                                                     |
| [`insertWorkHistorySchema`](/packages/core/api/functions#insertworkhistoryschema)                                      | variable |                                                                                     |
| [`selectWorkHistorySchema`](/packages/core/api/functions#selectworkhistoryschema)                                      | variable |                                                                                     |
| [`insertLifecyclePipelineSchema`](/packages/core/api/functions#insertlifecyclepipelineschema)                          | variable |                                                                                     |
| [`selectLifecyclePipelineSchema`](/packages/core/api/functions#selectlifecyclepipelineschema)                          | variable |                                                                                     |
| [`insertLifecycleStageSchema`](/packages/core/api/functions#insertlifecyclestageschema)                                | variable |                                                                                     |
| [`selectLifecycleStageSchema`](/packages/core/api/functions#selectlifecyclestageschema)                                | variable |                                                                                     |
| [`insertLifecycleGateResultSchema`](/packages/core/api/functions#insertlifecyclegateresultschema)                      | variable |                                                                                     |
| [`selectLifecycleGateResultSchema`](/packages/core/api/functions#selectlifecyclegateresultschema)                      | variable |                                                                                     |
| [`insertLifecycleEvidenceSchema`](/packages/core/api/functions#insertlifecycleevidenceschema)                          | variable |                                                                                     |
| [`selectLifecycleEvidenceSchema`](/packages/core/api/functions#selectlifecycleevidenceschema)                          | variable |                                                                                     |
| [`insertLifecycleTransitionSchema`](/packages/core/api/functions#insertlifecycletransitionschema)                      | variable |                                                                                     |
| [`selectLifecycleTransitionSchema`](/packages/core/api/functions#selectlifecycletransitionschema)                      | variable |                                                                                     |
| [`insertSchemaMetaSchema`](/packages/core/api/functions#insertschemametaschema)                                        | variable |                                                                                     |
| [`selectSchemaMetaSchema`](/packages/core/api/functions#selectschemametaschema)                                        | variable |                                                                                     |
| [`insertAuditLogSchema`](/packages/core/api/functions#insertauditlogschema)                                            | variable | Zod schema for validating audit log insert payloads.  T4848                         |
| [`AuditLogInsertSchema`](/packages/core/api/functions#auditloginsertschema)                                            | variable | Canonical named export for audit log insert schema (T4848). Alias for insertA...    |
| [`selectAuditLogSchema`](/packages/core/api/functions#selectauditlogschema)                                            | variable |                                                                                     |
| [`AuditLogSelectSchema`](/packages/core/api/functions#auditlogselectschema)                                            | variable | Canonical named export for audit log select schema (T4848). Alias for selectA...    |
| [`insertArchitectureDecisionSchema`](/packages/core/api/functions#insertarchitecturedecisionschema)                    | variable |                                                                                     |
| [`selectArchitectureDecisionSchema`](/packages/core/api/functions#selectarchitecturedecisionschema)                    | variable |                                                                                     |
| [`insertTokenUsageSchema`](/packages/core/api/functions#inserttokenusageschema)                                        | variable |                                                                                     |
| [`selectTokenUsageSchema`](/packages/core/api/functions#selecttokenusageschema)                                        | variable |                                                                                     |
| [`insertManifestEntrySchema`](/packages/core/api/functions#insertmanifestentryschema)                                  | variable |                                                                                     |
| [`selectManifestEntrySchema`](/packages/core/api/functions#selectmanifestentryschema)                                  | variable |                                                                                     |
| [`insertPipelineManifestSchema`](/packages/core/api/functions#insertpipelinemanifestschema)                            | variable |                                                                                     |
| [`selectPipelineManifestSchema`](/packages/core/api/functions#selectpipelinemanifestschema)                            | variable |                                                                                     |
| [`insertReleaseManifestSchema`](/packages/core/api/functions#insertreleasemanifestschema)                              | variable |                                                                                     |
| [`selectReleaseManifestSchema`](/packages/core/api/functions#selectreleasemanifestschema)                              | variable |                                                                                     |
| [`insertExternalTaskLinkSchema`](/packages/core/api/functions#insertexternaltasklinkschema)                            | variable |                                                                                     |
| [`selectExternalTaskLinkSchema`](/packages/core/api/functions#selectexternaltasklinkschema)                            | variable |                                                                                     |
| [`insertAgentInstanceSchema`](/packages/core/api/functions#insertagentinstanceschema)                                  | variable |                                                                                     |
| [`selectAgentInstanceSchema`](/packages/core/api/functions#selectagentinstanceschema)                                  | variable |                                                                                     |
| [`insertAgentErrorLogSchema`](/packages/core/api/functions#insertagenterrorlogschema)                                  | variable |                                                                                     |
| [`selectAgentErrorLogSchema`](/packages/core/api/functions#selectagenterrorlogschema)                                  | variable |                                                                                     |
| [`agentInstanceStatusSchema`](/packages/core/api/functions#agentinstancestatusschema)                                  | variable | Zod enum schema for agent instance statuses.                                        |
| [`agentTypeSchema`](/packages/core/api/functions#agenttypeschema)                                                      | variable | Zod enum schema for agent types.                                                    |
| [`validation-schemas.ts`](/packages/core/api/functions#validation-schemasts)                                           | file     |                                                                                     |
| [`compliance.ts`](/packages/core/api/functions#compliancets)                                                           | file     |                                                                                     |
| [`docs-sync.ts`](/packages/core/api/functions#docs-syncts)                                                             | file     |                                                                                     |
| [`CACHE_VERSION`](/packages/core/api/functions#cacheversion)                                                           | variable |                                                                                     |
| [`CACHE_TTL_SECONDS`](/packages/core/api/functions#cachettlseconds)                                                    | variable |                                                                                     |
| [`project-cache.ts`](/packages/core/api/functions#project-cachets)                                                     | file     |                                                                                     |
| [`utils.ts`](/packages/core/api/functions#utilsts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`VALID_OPERATIONS`](/packages/core/api/functions#validoperations)                                                     | variable |                                                                                     |
| [`FIELD_LIMITS`](/packages/core/api/functions#fieldlimits)                                                             | variable | Field length limits matching the Bash implementation.                               |
| [`VAL_SUCCESS`](/packages/core/api/functions#valsuccess)                                                               | variable | Validation result exit codes.                                                       |
| [`VAL_SCHEMA_ERROR`](/packages/core/api/functions#valschemaerror)                                                      | variable |                                                                                     |
| [`VAL_SEMANTIC_ERROR`](/packages/core/api/functions#valsemanticerror)                                                  | variable |                                                                                     |
| [`VAL_BOTH_ERRORS`](/packages/core/api/functions#valbotherrors)                                                        | variable |                                                                                     |
| [`engine.ts`](/packages/core/api/functions#enginets)                                                                   | file     |                                                                                     |
| [`gap-check.ts`](/packages/core/api/functions#gap-checkts)                                                             | file     |                                                                                     |
| [`manifest.ts`](/packages/core/api/functions#manifestts)                                                               | file     |                                                                                     |
| [`protocol-common.ts`](/packages/core/api/functions#protocol-commonts)                                                 | file     |                                                                                     |
| [`VERIFICATION_GATE_ORDER`](/packages/core/api/functions#verificationgateorder)                                        | variable |                                                                                     |
| [`VERIFICATION_VALID_AGENTS`](/packages/core/api/functions#verificationvalidagents)                                    | variable |                                                                                     |
| [`verification.ts`](/packages/core/api/functions#verificationts)                                                       | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`project-info.ts`](/packages/core/api/functions#project-infots)                                                       | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     | Backfill module: retroactively add AC and verification metadata to existing t...    |
| [`PROTOCOL_RULES`](/packages/core/api/functions#protocolrules)                                                         | variable | Protocol rule registry                                                              |
| [`protocol-rules.ts`](/packages/core/api/functions#protocol-rulests)                                                   | file     |                                                                                     |
| [`protocol-types.ts`](/packages/core/api/functions#protocol-typests)                                                   | file     |                                                                                     |
| [`protocolEnforcer`](/packages/core/api/functions#protocolenforcer)                                                    | variable | Default protocol enforcer instance                                                  |
| [`protocol-enforcement.ts`](/packages/core/api/functions#protocol-enforcementts)                                       | file     |                                                                                     |
| [`provider-hooks.ts`](/packages/core/api/functions#provider-hooksts)                                                   | file     |                                                                                     |
| [`chain-validation.ts`](/packages/core/api/functions#chain-validationts)                                               | file     |                                                                                     |
| [`chain-store.ts`](/packages/core/api/functions#chain-storets)                                                         | file     |                                                                                     |
| [`PROTOCOL_TYPES`](/packages/core/api/functions#protocoltypes)                                                         | variable | All supported protocol types.  The canonical set covers all 9 RCASD-IVTR pipe...    |
| [`PROTOCOL_EXIT_CODES`](/packages/core/api/functions#protocolexitcodes)                                                | variable | Map protocol types to exit codes.  Pipeline protocols use the 60-67 orchestra...    |
| [`protocol-validators.ts`](/packages/core/api/functions#protocol-validatorsts)                                         | file     |                                                                                     |
| [`DEFAULT_CHAIN_ID`](/packages/core/api/functions#defaultchainid)                                                      | variable |                                                                                     |
| [`DEFAULT_PROTOCOL_STAGE_MAP`](/packages/core/api/functions#defaultprotocolstagemap)                                   | variable | Stage mapping for protocol validation gates in the default chain.  Cross-cutt...    |
| [`default-chain.ts`](/packages/core/api/functions#default-chaints)                                                     | file     |                                                                                     |
| [`tessera-engine.ts`](/packages/core/api/functions#tessera-enginets)                                                   | file     |                                                                                     |
| [`brain-maintenance.ts`](/packages/core/api/functions#brain-maintenancets)                                             | file     |                                                                                     |
| [`claude-mem-migration.ts`](/packages/core/api/functions#claude-mem-migrationts)                                       | file     |                                                                                     |
| [`brain-reasoning.ts`](/packages/core/api/functions#brain-reasoningts)                                                 | file     |                                                                                     |
| [`engine-compat.ts`](/packages/core/api/functions#engine-compatts)                                                     | file     |                                                                                     |
| [`pipeline-manifest-sqlite.ts`](/packages/core/api/functions#pipeline-manifest-sqlitets)                               | file     |                                                                                     |
| [`model-provider-registry.ts`](/packages/core/api/functions#model-provider-registryts)                                 | file     |                                                                                     |
| [`token-service.ts`](/packages/core/api/functions#token-servicets)                                                     | file     |                                                                                     |
| [`parallel.ts`](/packages/core/api/functions#parallelts)                                                               | file     |                                                                                     |
| [`skill-ops.ts`](/packages/core/api/functions#skill-opsts)                                                             | file     |                                                                                     |
| [`unblock.ts`](/packages/core/api/functions#unblockts)                                                                 | file     |                                                                                     |
| [`validate-spawn.ts`](/packages/core/api/functions#validate-spawnts)                                                   | file     |                                                                                     |
| [`context-inject.ts`](/packages/core/api/functions#context-injectts)                                                   | file     |                                                                                     |
| [`session-id.ts`](/packages/core/api/functions#session-idts)                                                           | file     |                                                                                     |
| [`session-store.ts`](/packages/core/api/functions#session-storets)                                                     | file     |                                                                                     |
| [`relates.ts`](/packages/core/api/functions#relatests)                                                                 | file     |                                                                                     |
| [`cancel-ops.ts`](/packages/core/api/functions#cancel-opsts)                                                           | file     |                                                                                     |
| [`task-ops.ts`](/packages/core/api/functions#task-opsts)                                                               | file     |                                                                                     |
| [`analyze.ts`](/packages/core/api/functions#analyzets)                                                                 | file     |                                                                                     |
| [`labels.ts`](/packages/core/api/functions#labelsts)                                                                   | file     |                                                                                     |
| [`provider.ts`](/packages/core/api/functions#providerts)                                                               | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`migration-sqlite.ts`](/packages/core/api/functions#migration-sqlitets)                                               | file     |                                                                                     |
| [`repair.ts`](/packages/core/api/functions#repairts)                                                                   | file     |                                                                                     |
| [`upgrade.ts`](/packages/core/api/functions#upgradets)                                                                 | file     |                                                                                     |
| [`GATE_SEQUENCE`](/packages/core/api/functions#gatesequence)                                                           | variable | Export gate layer sequence for external use                                         |
| [`WORKFLOW_GATE_DEFINITIONS`](/packages/core/api/functions#workflowgatedefinitions)                                    | variable | Complete workflow gate definitions per Section 7.2                                  |
| [`WORKFLOW_GATE_SEQUENCE`](/packages/core/api/functions#workflowgatesequence)                                          | variable | Ordered workflow gate sequence per Section 7.1                                      |
| [`operation-verification-gates.ts`](/packages/core/api/functions#operation-verification-gatests)                       | file     |                                                                                     |
| [`GATE_VALIDATION_RULES`](/packages/core/api/functions#gatevalidationrules)                                            | variable | Validation rule definitions for reuse                                               |
| [`VALID_WORKFLOW_AGENTS`](/packages/core/api/functions#validworkflowagents)                                            | variable | Valid workflow gate agent names per Section 7.2                                     |
| [`VALID_WORKFLOW_GATE_STATUSES`](/packages/core/api/functions#validworkflowgatestatuses)                               | variable | Valid workflow gate status values per Section 7.3                                   |
| [`operation-gate-validators.ts`](/packages/core/api/functions#operation-gate-validatorsts)                             | file     |                                                                                     |
| [`param-utils.ts`](/packages/core/api/functions#param-utilsts)                                                         | file     |                                                                                     |
| [`_shared.ts`](/packages/core/api/functions#sharedts)                                                                  | file     |                                                                                     |
| [`architecture-decision.ts`](/packages/core/api/functions#architecture-decisionts)                                     | file     |                                                                                     |
| [`artifact-publish.ts`](/packages/core/api/functions#artifact-publishts)                                               | file     |                                                                                     |
| [`consensus.ts`](/packages/core/api/functions#consensusts)                                                             | file     |                                                                                     |
| [`contribution.ts`](/packages/core/api/functions#contributionts)                                                       | file     |                                                                                     |
| [`decomposition.ts`](/packages/core/api/functions#decompositionts)                                                     | file     |                                                                                     |
| [`implementation.ts`](/packages/core/api/functions#implementationts)                                                   | file     |                                                                                     |
| [`provenance.ts`](/packages/core/api/functions#provenancets)                                                           | file     |                                                                                     |
| [`release.ts`](/packages/core/api/functions#releasets)                                                                 | file     |                                                                                     |
| [`research.ts`](/packages/core/api/functions#researchts)                                                               | file     |                                                                                     |
| [`specification.ts`](/packages/core/api/functions#specificationts)                                                     | file     |                                                                                     |
| [`testing.ts`](/packages/core/api/functions#testingts)                                                                 | file     |                                                                                     |
| [`validation.ts`](/packages/core/api/functions#validationts)                                                           | file     |                                                                                     |
| [`schema-validator.ts`](/packages/core/api/functions#schema-validatorts)                                               | file     |                                                                                     |
| [`validate-ops.ts`](/packages/core/api/functions#validate-opsts)                                                       | file     |                                                                                     |
| [`bootstrap.ts`](/packages/core/api/functions#bootstrapts)                                                             | file     |                                                                                     |
| [`critical-path.ts`](/packages/core/api/functions#critical-pathts)                                                     | file     |                                                                                     |
| [`precedence-types.ts`](/packages/core/api/functions#precedence-typests)                                               | file     |                                                                                     |
| [`precedence-integration.ts`](/packages/core/api/functions#precedence-integrationts)                                   | file     |                                                                                     |
| [`plan.ts`](/packages/core/api/functions#plants)                                                                       | file     |                                                                                     |
| [`credentials.ts`](/packages/core/api/functions#credentialsts)                                                         | file     |                                                                                     |
| [`agent-registry-accessor.ts`](/packages/core/api/functions#agent-registry-accessorts)                                 | file     |                                                                                     |
| [`internal.ts`](/packages/core/api/functions#internalts)                                                               | file     |                                                                                     |
| [`audit-prune.test.ts`](/packages/core/api/functions#audit-prunetestts)                                                | file     |                                                                                     |
| [`caamp-skill-install.test.ts`](/packages/core/api/functions#caamp-skill-installtestts)                                | file     |                                                                                     |
| [`cli-parity.test.ts`](/packages/core/api/functions#cli-paritytestts)                                                  | file     |                                                                                     |
| [`config.test.ts`](/packages/core/api/functions#configtestts)                                                          | file     |                                                                                     |
| [`error-catalog.test.ts`](/packages/core/api/functions#error-catalogtestts)                                            | file     |                                                                                     |
| [`hooks.test.ts`](/packages/core/api/functions#hookstestts)                                                            | file     |                                                                                     |
| [`human-output.test.ts`](/packages/core/api/functions#human-outputtestts)                                              | file     |                                                                                     |
| [`index-api-compat.test.ts`](/packages/core/api/functions#index-api-compattestts)                                      | file     |                                                                                     |
| [`init-e2e.test.ts`](/packages/core/api/functions#init-e2etestts)                                                      | file     |                                                                                     |
| [`injection-chain.test.ts`](/packages/core/api/functions#injection-chaintestts)                                        | file     |                                                                                     |
| [`injection-mvi-tiers.test.ts`](/packages/core/api/functions#injection-mvi-tierstestts)                                | file     |                                                                                     |
| [`injection-shared.test.ts`](/packages/core/api/functions#injection-sharedtestts)                                      | file     |                                                                                     |
| [`logger.test.ts`](/packages/core/api/functions#loggertestts)                                                          | file     |                                                                                     |
| [`paths.test.ts`](/packages/core/api/functions#pathstestts)                                                            | file     |                                                                                     |
| [`project-info.test.ts`](/packages/core/api/functions#project-infotestts)                                              | file     |                                                                                     |
| [`rcasd-index.ts`](/packages/core/api/functions#rcasd-indexts)                                                         | file     |                                                                                     |
| [`rcsd-pipeline-e2e.test.ts`](/packages/core/api/functions#rcsd-pipeline-e2etestts)                                    | file     |                                                                                     |
| [`remote.test.ts`](/packages/core/api/functions#remotetestts)                                                          | file     |                                                                                     |
| [`scaffold.test.ts`](/packages/core/api/functions#scaffoldtestts)                                                      | file     |                                                                                     |
| [`schema-management.test.ts`](/packages/core/api/functions#schema-managementtestts)                                    | file     |                                                                                     |
| [`schema.test.ts`](/packages/core/api/functions#schematestts)                                                          | file     |                                                                                     |
| [`sharing.test.ts`](/packages/core/api/functions#sharingtestts)                                                        | file     |                                                                                     |
| [`snapshot.test.ts`](/packages/core/api/functions#snapshottestts)                                                      | file     |                                                                                     |
| [`upgrade.test.ts`](/packages/core/api/functions#upgradetestts)                                                        | file     |                                                                                     |
| [`discovery.test.ts`](/packages/core/api/functions#discoverytestts)                                                    | file     |                                                                                     |
| [`manager.test.ts`](/packages/core/api/functions#managertestts)                                                        | file     |                                                                                     |
| [`agent-registry.test.ts`](/packages/core/api/functions#agent-registrytestts)                                          | file     |                                                                                     |
| [`capacity.test.ts`](/packages/core/api/functions#capacitytestts)                                                      | file     |                                                                                     |
| [`execution-learning.test.ts`](/packages/core/api/functions#execution-learningtestts)                                  | file     |                                                                                     |
| [`health-monitor.test.ts`](/packages/core/api/functions#health-monitortestts)                                          | file     |                                                                                     |
| [`registry.test.ts`](/packages/core/api/functions#registrytestts)                                                      | file     |                                                                                     |
| [`retry.test.ts`](/packages/core/api/functions#retrytestts)                                                            | file     |                                                                                     |
| [`types.ts`](/packages/core/api/functions#typests)                                                                     | file     |                                                                                     |
| [`approval.ts`](/packages/core/api/functions#approvalts)                                                               | file     |                                                                                     |
| [`context-builder.ts`](/packages/core/api/functions#context-builderts)                                                 | file     |                                                                                     |
| [`discretion.ts`](/packages/core/api/functions#discretionts)                                                           | file     |                                                                                     |
| [`parallel-runner.ts`](/packages/core/api/functions#parallel-runnerts)                                                 | file     |                                                                                     |
| [`workflow-executor.ts`](/packages/core/api/functions#workflow-executorts)                                             | file     |                                                                                     |
| [`index.ts`](/packages/core/api/functions#indexts)                                                                     | file     |                                                                                     |
| [`cant-agent-parse.test.ts`](/packages/core/api/functions#cant-agent-parsetestts)                                      | file     |                                                                                     |
| [`summary.ts`](/packages/core/api/functions#summaryts)                                                                 | file     |                                                                                     |
| [`sync.test.ts`](/packages/core/api/functions#synctestts)                                                              | file     |                                                                                     |
| [`dual-api-e2e.test.ts`](/packages/core/api/functions#dual-api-e2etestts)                                              | file     |                                                                                     |
| [`local-credential-flow.test.ts`](/packages/core/api/functions#local-credential-flowtestts)                            | file     |                                                                                     |
| [`local-transport.test.ts`](/packages/core/api/functions#local-transporttestts)                                        | file     |                                                                                     |
| [`sse-transport.test.ts`](/packages/core/api/functions#sse-transporttestts)                                            | file     |                                                                                     |
| [`provider-hooks.test.ts`](/packages/core/api/functions#provider-hookstestts)                                          | file     |                                                                                     |
| [`registry.test.ts`](/packages/core/api/functions#registrytestts)                                                      | file     |                                                                                     |
| [`error-hooks.test.ts`](/packages/core/api/functions#error-hookstestts)                                                | file     |                                                                                     |
| [`file-hooks.test.ts`](/packages/core/api/functions#file-hookstestts)                                                  | file     |                                                                                     |
| [`hook-automation-e2e.test.ts`](/packages/core/api/functions#hook-automation-e2etestts)                                | file     |                                                                                     |
| [`session-hooks.test.ts`](/packages/core/api/functions#session-hookstestts)                                            | file     |                                                                                     |
| [`task-hooks.test.ts`](/packages/core/api/functions#task-hookstestts)                                                  | file     |                                                                                     |
| [`adaptive-validation.test.ts`](/packages/core/api/functions#adaptive-validationtestts)                                | file     |                                                                                     |
| [`impact.test.ts`](/packages/core/api/functions#impacttestts)                                                          | file     |                                                                                     |
| [`patterns.test.ts`](/packages/core/api/functions#patternstestts)                                                      | file     |                                                                                     |
| [`prediction.test.ts`](/packages/core/api/functions#predictiontestts)                                                  | file     |                                                                                     |
| [`retry.test.ts`](/packages/core/api/functions#retrytestts)                                                            | file     |                                                                                     |
| [`chain-composition.ts`](/packages/core/api/functions#chain-compositionts)                                             | file     |                                                                                     |
| [`consolidate-rcasd.ts`](/packages/core/api/functions#consolidate-rcasdts)                                             | file     |                                                                                     |
| [`resume.ts`](/packages/core/api/functions#resumets)                                                                   | file     |                                                                                     |
| [`state-machine.ts`](/packages/core/api/functions#state-machinets)                                                     | file     |                                                                                     |
| [`chain-store.test.ts`](/packages/core/api/functions#chain-storetestts)                                                | file     |                                                                                     |
| [`consolidate-rcasd.test.ts`](/packages/core/api/functions#consolidate-rcasdtestts)                                    | file     |                                                                                     |
| [`default-chain.test.ts`](/packages/core/api/functions#default-chaintestts)                                            | file     |                                                                                     |
| [`frontmatter.test.ts`](/packages/core/api/functions#frontmattertestts)                                                | file     |                                                                                     |
| [`lifecycle.test.ts`](/packages/core/api/functions#lifecycletestts)                                                    | file     |                                                                                     |
| [`pipeline.integration.test.ts`](/packages/core/api/functions#pipelineintegrationtestts)                               | file     |                                                                                     |
| [`rcasd-paths.test.ts`](/packages/core/api/functions#rcasd-pathstestts)                                                | file     |                                                                                     |
| [`resume-schema-contract.test.ts`](/packages/core/api/functions#resume-schema-contracttestts)                          | file     |                                                                                     |
| [`stage-record-provenance.integration.test.ts`](/packages/core/api/functions#stage-record-provenanceintegrationtestts) | file     |                                                                                     |
| [`tessera-engine.test.ts`](/packages/core/api/functions#tessera-enginetestts)                                          | file     |                                                                                     |
| [`embedding-queue.ts`](/packages/core/api/functions#embedding-queuets)                                                 | file     |                                                                                     |
| [`embedding-worker.ts`](/packages/core/api/functions#embedding-workerts)                                               | file     |                                                                                     |
| [`auto-extract.test.ts`](/packages/core/api/functions#auto-extracttestts)                                              | file     |                                                                                     |
| [`brain-automation.test.ts`](/packages/core/api/functions#brain-automationtestts)                                      | file     |                                                                                     |
| [`brain-embedding.test.ts`](/packages/core/api/functions#brain-embeddingtestts)                                        | file     |                                                                                     |
| [`brain-links.test.ts`](/packages/core/api/functions#brain-linkstestts)                                                | file     |                                                                                     |
| [`brain-migration.test.ts`](/packages/core/api/functions#brain-migrationtestts)                                        | file     |                                                                                     |
| [`brain-retrieval.test.ts`](/packages/core/api/functions#brain-retrievaltestts)                                        | file     |                                                                                     |
| [`brain-search.test.ts`](/packages/core/api/functions#brain-searchtestts)                                              | file     |                                                                                     |
| [`claude-mem-migration.test.ts`](/packages/core/api/functions#claude-mem-migrationtestts)                              | file     |                                                                                     |
| [`decisions.test.ts`](/packages/core/api/functions#decisionstestts)                                                    | file     |                                                                                     |
| [`engine-compat.test.ts`](/packages/core/api/functions#engine-compattestts)                                            | file     |                                                                                     |
| [`memory-bridge.test.ts`](/packages/core/api/functions#memory-bridgetestts)                                            | file     |                                                                                     |
| [`pipeline-manifest-sqlite.test.ts`](/packages/core/api/functions#pipeline-manifest-sqlitetestts)                      | file     |                                                                                     |
| [`session-memory.test.ts`](/packages/core/api/functions#session-memorytestts)                                          | file     |                                                                                     |
| [`model-provider-registry.test.ts`](/packages/core/api/functions#model-provider-registrytestts)                        | file     |                                                                                     |
| [`provider-detection.test.ts`](/packages/core/api/functions#provider-detectiontestts)                                  | file     |                                                                                     |
| [`checksum.test.ts`](/packages/core/api/functions#checksumtestts)                                                      | file     |                                                                                     |
| [`logger.test.ts`](/packages/core/api/functions#loggertestts)                                                          | file     |                                                                                     |
| [`migration-failure.integration.test.ts`](/packages/core/api/functions#migration-failureintegrationtestts)             | file     |                                                                                     |
| [`migration.test.ts`](/packages/core/api/functions#migrationtestts)                                                    | file     |                                                                                     |
| [`state.test.ts`](/packages/core/api/functions#statetestts)                                                            | file     |                                                                                     |
| [`validate.test.ts`](/packages/core/api/functions#validatetestts)                                                      | file     |                                                                                     |
| [`deps.test.ts`](/packages/core/api/functions#depstestts)                                                              | file     |                                                                                     |
| [`nexus-e2e.test.ts`](/packages/core/api/functions#nexus-e2etestts)                                                    | file     |                                                                                     |
| [`permissions.test.ts`](/packages/core/api/functions#permissionstestts)                                                | file     |                                                                                     |
| [`query.test.ts`](/packages/core/api/functions#querytestts)                                                            | file     |                                                                                     |
| [`reconcile.test.ts`](/packages/core/api/functions#reconciletestts)                                                    | file     |                                                                                     |
| [`registry.test.ts`](/packages/core/api/functions#registrytestts)                                                      | file     |                                                                                     |
| [`transfer.test.ts`](/packages/core/api/functions#transfertestts)                                                      | file     |                                                                                     |
| [`index.test.ts`](/packages/core/api/functions#indextestts)                                                            | file     |                                                                                     |
| [`log-filter.test.ts`](/packages/core/api/functions#log-filtertestts)                                                  | file     |                                                                                     |
| [`log-parser.test.ts`](/packages/core/api/functions#log-parsertestts)                                                  | file     |                                                                                     |
| [`log-reader.test.ts`](/packages/core/api/functions#log-readertestts)                                                  | file     |                                                                                     |
| [`autonomous-spec.test.ts`](/packages/core/api/functions#autonomous-spectestts)                                        | file     |                                                                                     |
| [`orchestration.test.ts`](/packages/core/api/functions#orchestrationtestts)                                            | file     |                                                                                     |
| [`protocol-validators.test.ts`](/packages/core/api/functions#protocol-validatorstestts)                                | file     |                                                                                     |
| [`deps.test.ts`](/packages/core/api/functions#depstestts)                                                              | file     |                                                                                     |
| [`phases.test.ts`](/packages/core/api/functions#phasestestts)                                                          | file     |                                                                                     |
| [`artifacts.test.ts`](/packages/core/api/functions#artifactstestts)                                                    | file     |                                                                                     |
| [`cancel-release.test.ts`](/packages/core/api/functions#cancel-releasetestts)                                          | file     |                                                                                     |
| [`changelog-writer.test.ts`](/packages/core/api/functions#changelog-writertestts)                                      | file     |                                                                                     |
| [`push-policy.test.ts`](/packages/core/api/functions#push-policytestts)                                                | file     |                                                                                     |
| [`release.test.ts`](/packages/core/api/functions#releasetestts)                                                        | file     |                                                                                     |
| [`allocate.test.ts`](/packages/core/api/functions#allocatetestts)                                                      | file     |                                                                                     |
| [`context-monitor.ts`](/packages/core/api/functions#context-monitorts)                                                 | file     |                                                                                     |
| [`hitl-warnings.ts`](/packages/core/api/functions#hitl-warningsts)                                                     | file     |                                                                                     |
| [`statusline-setup.ts`](/packages/core/api/functions#statusline-setupts)                                               | file     |                                                                                     |
| [`briefing-blocked.test.ts`](/packages/core/api/functions#briefing-blockedtestts)                                      | file     |                                                                                     |
| [`briefing.test.ts`](/packages/core/api/functions#briefingtestts)                                                      | file     |                                                                                     |
| [`handoff-integration.test.ts`](/packages/core/api/functions#handoff-integrationtestts)                                | file     |                                                                                     |
| [`handoff.test.ts`](/packages/core/api/functions#handofftestts)                                                        | file     |                                                                                     |
| [`index.test.ts`](/packages/core/api/functions#indextestts)                                                            | file     |                                                                                     |
| [`session-cleanup.test.ts`](/packages/core/api/functions#session-cleanuptestts)                                        | file     |                                                                                     |
| [`session-edge-cases.test.ts`](/packages/core/api/functions#session-edge-casestestts)                                  | file     |                                                                                     |
| [`session-find.test.ts`](/packages/core/api/functions#session-findtestts)                                              | file     |                                                                                     |
| [`session-grade.integration.test.ts`](/packages/core/api/functions#session-gradeintegrationtestts)                     | file     |                                                                                     |
| [`session-grade.test.ts`](/packages/core/api/functions#session-gradetestts)                                            | file     |                                                                                     |
| [`session-memory-bridge.test.ts`](/packages/core/api/functions#session-memory-bridgetestts)                            | file     |                                                                                     |
| [`sessions.test.ts`](/packages/core/api/functions#sessionstestts)                                                      | file     |                                                                                     |
| [`routing-table.ts`](/packages/core/api/functions#routing-tablets)                                                     | file     |                                                                                     |
| [`dynamic-skill-generator.ts`](/packages/core/api/functions#dynamic-skill-generatorts)                                 | file     |                                                                                     |
| [`discovery.test.ts`](/packages/core/api/functions#discoverytestts)                                                    | file     |                                                                                     |
| [`dispatch.test.ts`](/packages/core/api/functions#dispatchtestts)                                                      | file     |                                                                                     |
| [`dynamic-skill-generator.test.ts`](/packages/core/api/functions#dynamic-skill-generatortestts)                        | file     |                                                                                     |
| [`manifests.test.ts`](/packages/core/api/functions#manifeststestts)                                                    | file     |                                                                                     |
| [`precedence.test.ts`](/packages/core/api/functions#precedencetestts)                                                  | file     |                                                                                     |
| [`routing-table.test.ts`](/packages/core/api/functions#routing-tabletestts)                                            | file     |                                                                                     |
| [`skill-paths.test.ts`](/packages/core/api/functions#skill-pathstestts)                                                | file     |                                                                                     |
| [`test-utility.test.ts`](/packages/core/api/functions#test-utilitytestts)                                              | file     |                                                                                     |
| [`token.test.ts`](/packages/core/api/functions#tokentestts)                                                            | file     |                                                                                     |
| [`validation.test.ts`](/packages/core/api/functions#validationtestts)                                                  | file     |                                                                                     |
| [`version.test.ts`](/packages/core/api/functions#versiontestts)                                                        | file     |                                                                                     |
| [`subagent.test.ts`](/packages/core/api/functions#subagenttestts)                                                      | file     |                                                                                     |
| [`spawn-tier.test.ts`](/packages/core/api/functions#spawn-tiertestts)                                                  | file     |                                                                                     |
| [`adapter-registry.test.ts`](/packages/core/api/functions#adapter-registrytestts)                                      | file     |                                                                                     |
| [`stats.test.ts`](/packages/core/api/functions#statstestts)                                                            | file     |                                                                                     |
| [`purge.test.ts`](/packages/core/api/functions#purgetestts)                                                            | file     |                                                                                     |
| [`cache.ts`](/packages/core/api/functions#cachets)                                                                     | file     |                                                                                     |
| [`import-logging.ts`](/packages/core/api/functions#import-loggingts)                                                   | file     |                                                                                     |
| [`import-sort.ts`](/packages/core/api/functions#import-sortts)                                                         | file     |                                                                                     |
| [`lifecycle-store.ts`](/packages/core/api/functions#lifecycle-storets)                                                 | file     |                                                                                     |
| [`insertProjectRegistrySchema`](/packages/core/api/functions#insertprojectregistryschema)                              | variable |                                                                                     |
| [`selectProjectRegistrySchema`](/packages/core/api/functions#selectprojectregistryschema)                              | variable |                                                                                     |
| [`insertNexusAuditLogSchema`](/packages/core/api/functions#insertnexusauditlogschema)                                  | variable |                                                                                     |
| [`selectNexusAuditLogSchema`](/packages/core/api/functions#selectnexusauditlogschema)                                  | variable |                                                                                     |
| [`insertNexusSchemaMetaSchema`](/packages/core/api/functions#insertnexusschemametaschema)                              | variable |                                                                                     |
| [`selectNexusSchemaMetaSchema`](/packages/core/api/functions#selectnexusschemametaschema)                              | variable |                                                                                     |
| [`nexus-validation-schemas.ts`](/packages/core/api/functions#nexus-validation-schemasts)                               | file     |                                                                                     |
| [`schema.ts`](/packages/core/api/functions#schemats)                                                                   | file     |                                                                                     |
| [`atomic.test.ts`](/packages/core/api/functions#atomictestts)                                                          | file     |                                                                                     |
| [`backup.test.ts`](/packages/core/api/functions#backuptestts)                                                          | file     |                                                                                     |
| [`brain-accessor-pageindex.test.ts`](/packages/core/api/functions#brain-accessor-pageindextestts)                      | file     |                                                                                     |
| [`brain-accessor.test.ts`](/packages/core/api/functions#brain-accessortestts)                                          | file     |                                                                                     |
| [`brain-pageindex.test.ts`](/packages/core/api/functions#brain-pageindextestts)                                        | file     |                                                                                     |
| [`brain-schema.test.ts`](/packages/core/api/functions#brain-schematestts)                                              | file     |                                                                                     |
| [`brain-vec.test.ts`](/packages/core/api/functions#brain-vectestts)                                                    | file     |                                                                                     |
| [`collision-detection.test.ts`](/packages/core/api/functions#collision-detectiontestts)                                | file     |                                                                                     |
| [`data-safety-central.test.ts`](/packages/core/api/functions#data-safety-centraltestts)                                | file     |                                                                                     |
| [`db-helpers.test.ts`](/packages/core/api/functions#db-helperstestts)                                                  | file     |                                                                                     |
| [`e2e-safety-integration.test.ts`](/packages/core/api/functions#e2e-safety-integrationtestts)                          | file     |                                                                                     |
| [`git-checkpoint.test.ts`](/packages/core/api/functions#git-checkpointtestts)                                          | file     |                                                                                     |
| [`idempotent-migration.test.ts`](/packages/core/api/functions#idempotent-migrationtestts)                              | file     |                                                                                     |
| [`import-logging.test.ts`](/packages/core/api/functions#import-loggingtestts)                                          | file     |                                                                                     |
| [`import-sort.test.ts`](/packages/core/api/functions#import-sorttestts)                                                | file     |                                                                                     |
| [`json.test.ts`](/packages/core/api/functions#jsontestts)                                                              | file     |                                                                                     |
| [`lifecycle-schema-parity.test.ts`](/packages/core/api/functions#lifecycle-schema-paritytestts)                        | file     |                                                                                     |
| [`migration-integration.test.ts`](/packages/core/api/functions#migration-integrationtestts)                            | file     |                                                                                     |
| [`migration-retry.test.ts`](/packages/core/api/functions#migration-retrytestts)                                        | file     |                                                                                     |
| [`migration-safety.test.ts`](/packages/core/api/functions#migration-safetytestts)                                      | file     |                                                                                     |
| [`migration-sqlite.test.ts`](/packages/core/api/functions#migration-sqlitetestts)                                      | file     |                                                                                     |
| [`performance-safety.test.ts`](/packages/core/api/functions#performance-safetytestts)                                  | file     |                                                                                     |
| [`project-detect.test.ts`](/packages/core/api/functions#project-detecttestts)                                          | file     |                                                                                     |
| [`project-registry.test.ts`](/packages/core/api/functions#project-registrytestts)                                      | file     |                                                                                     |
| [`provider.test.ts`](/packages/core/api/functions#providertestts)                                                      | file     |                                                                                     |
| [`relations.test.ts`](/packages/core/api/functions#relationstestts)                                                    | file     |                                                                                     |
| [`safety-accessor.test.ts`](/packages/core/api/functions#safety-accessortestts)                                        | file     |                                                                                     |
| [`sequence-validation.test.ts`](/packages/core/api/functions#sequence-validationtestts)                                | file     |                                                                                     |
| [`session-store.test.ts`](/packages/core/api/functions#session-storetestts)                                            | file     |                                                                                     |
| [`sqlite-backup.test.ts`](/packages/core/api/functions#sqlite-backuptestts)                                            | file     |                                                                                     |
| [`sqlite.test.ts`](/packages/core/api/functions#sqlitetestts)                                                          | file     |                                                                                     |
| [`task-store.test.ts`](/packages/core/api/functions#task-storetestts)                                                  | file     |                                                                                     |
| [`write-verification.test.ts`](/packages/core/api/functions#write-verificationtestts)                                  | file     |                                                                                     |
| [`cleanup.test.ts`](/packages/core/api/functions#cleanuptestts)                                                        | file     |                                                                                     |
| [`health.test.ts`](/packages/core/api/functions#healthtestts)                                                          | file     |                                                                                     |
| [`start-deps.test.ts`](/packages/core/api/functions#start-depstestts)                                                  | file     |                                                                                     |
| [`ATOMICITY_CRITERIA`](/packages/core/api/functions#atomicitycriteria)                                                 | variable |                                                                                     |
| [`atomicity.ts`](/packages/core/api/functions#atomicityts)                                                             | file     |                                                                                     |
| [`crossref-extract.ts`](/packages/core/api/functions#crossref-extractts)                                               | file     |                                                                                     |
| [`delete-preview.ts`](/packages/core/api/functions#delete-previewts)                                                   | file     |                                                                                     |
| [`VALID_STRATEGIES`](/packages/core/api/functions#validstrategies)                                                     | variable |                                                                                     |
| [`deletion-strategy.ts`](/packages/core/api/functions#deletion-strategyts)                                             | file     |                                                                                     |
| [`graph-cache.ts`](/packages/core/api/functions#graph-cachets)                                                         | file     |                                                                                     |
| [`graph-rag.ts`](/packages/core/api/functions#graph-ragts)                                                             | file     |                                                                                     |
| [`phase-tracking.ts`](/packages/core/api/functions#phase-trackingts)                                                   | file     |                                                                                     |
| [`size-weighting.ts`](/packages/core/api/functions#size-weightingts)                                                   | file     |                                                                                     |
| [`DEFAULT_THRESHOLDS`](/packages/core/api/functions#defaultthresholds)                                                 | variable | Default thresholds.                                                                 |
| [`staleness.ts`](/packages/core/api/functions#stalenessts)                                                             | file     |                                                                                     |
| [`add.test.ts`](/packages/core/api/functions#addtestts)                                                                | file     |                                                                                     |
| [`archive.test.ts`](/packages/core/api/functions#archivetestts)                                                        | file     |                                                                                     |
| [`assignee.test.ts`](/packages/core/api/functions#assigneetestts)                                                      | file     |                                                                                     |
| [`atomicity.test.ts`](/packages/core/api/functions#atomicitytestts)                                                    | file     |                                                                                     |
| [`cancel-ops.test.ts`](/packages/core/api/functions#cancel-opstestts)                                                  | file     |                                                                                     |
| [`complete-unblocks.test.ts`](/packages/core/api/functions#complete-unblockstestts)                                    | file     |                                                                                     |
| [`complete.test.ts`](/packages/core/api/functions#completetestts)                                                      | file     |                                                                                     |
| [`delete.test.ts`](/packages/core/api/functions#deletetestts)                                                          | file     |                                                                                     |
| [`dependency-check.test.ts`](/packages/core/api/functions#dependency-checktestts)                                      | file     |                                                                                     |
| [`deps-ready.test.ts`](/packages/core/api/functions#deps-readytestts)                                                  | file     |                                                                                     |
| [`epic-enforcement.test.ts`](/packages/core/api/functions#epic-enforcementtestts)                                      | file     |                                                                                     |
| [`find.test.ts`](/packages/core/api/functions#findtestts)                                                              | file     |                                                                                     |
| [`graph-ops.test.ts`](/packages/core/api/functions#graph-opstestts)                                                    | file     |                                                                                     |
| [`hierarchy-policy.test.ts`](/packages/core/api/functions#hierarchy-policytestts)                                      | file     |                                                                                     |
| [`hierarchy.test.ts`](/packages/core/api/functions#hierarchytestts)                                                    | file     |                                                                                     |
| [`id-generator.test.ts`](/packages/core/api/functions#id-generatortestts)                                              | file     |                                                                                     |
| [`labels.test.ts`](/packages/core/api/functions#labelstestts)                                                          | file     |                                                                                     |
| [`list.test.ts`](/packages/core/api/functions#listtestts)                                                              | file     |                                                                                     |
| [`minimal-test.test.ts`](/packages/core/api/functions#minimal-testtestts)                                              | file     |                                                                                     |
| [`phase-tracking.test.ts`](/packages/core/api/functions#phase-trackingtestts)                                          | file     |                                                                                     |
| [`pipeline-stage.test.ts`](/packages/core/api/functions#pipeline-stagetestts)                                          | file     |                                                                                     |
| [`plan-priority.test.ts`](/packages/core/api/functions#plan-prioritytestts)                                            | file     |                                                                                     |
| [`priority-normalization.test.ts`](/packages/core/api/functions#priority-normalizationtestts)                          | file     |                                                                                     |
| [`relates.test.ts`](/packages/core/api/functions#relatestestts)                                                        | file     |                                                                                     |
| [`show-deps.test.ts`](/packages/core/api/functions#show-depstestts)                                                    | file     |                                                                                     |
| [`show.test.ts`](/packages/core/api/functions#showtestts)                                                              | file     |                                                                                     |
| [`staleness.test.ts`](/packages/core/api/functions#stalenesstestts)                                                    | file     |                                                                                     |
| [`task-ops-depends.test.ts`](/packages/core/api/functions#task-ops-dependstestts)                                      | file     |                                                                                     |
| [`update.test.ts`](/packages/core/api/functions#updatetestts)                                                          | file     |                                                                                     |
| [`chain-validation.test.ts`](/packages/core/api/functions#chain-validationtestts)                                      | file     |                                                                                     |
| [`compliance.test.ts`](/packages/core/api/functions#compliancetestts)                                                  | file     |                                                                                     |
| [`docs-sync.test.ts`](/packages/core/api/functions#docs-synctestts)                                                    | file     |                                                                                     |
| [`doctor-gitignore.test.ts`](/packages/core/api/functions#doctor-gitignoretestts)                                      | file     |                                                                                     |
| [`doctor-injection.test.ts`](/packages/core/api/functions#doctor-injectiontestts)                                      | file     |                                                                                     |
| [`doctor.test.ts`](/packages/core/api/functions#doctortestts)                                                          | file     |                                                                                     |
| [`engine.test.ts`](/packages/core/api/functions#enginetestts)                                                          | file     |                                                                                     |
| [`manifest.test.ts`](/packages/core/api/functions#manifesttestts)                                                      | file     |                                                                                     |
| [`protocol-common.test.ts`](/packages/core/api/functions#protocol-commontestts)                                        | file     |                                                                                     |
| [`verification.test.ts`](/packages/core/api/functions#verificationtestts)                                              | file     |                                                                                     |
