> ## 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

> core package overview

## Functions & Classes

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

## Types & Interfaces

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

## Other Exports

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