/** * Delegation persistence via session-tracker hierarchy manifests. * * CANONICAL SOURCE BOUNDARY: * - Continuity's `session-continuity.json` (Q6) is canonical for session state. * - Session-tracker (`.hivemind/session-tracker/`) is canonical for delegation * and hierarchy state (REQ-P41D-01). * * Architecture: This module writes TO session-tracker via ChildWriter and * HierarchyManifestWriter (acceptable per CQRS — task-management writes TO * features). Read-side uses session-tracker's `readRawDelegations()` public * API rather than direct file I/O. * * @module task-management/continuity/delegation-persistence */ import type { Delegation } from "../../shared/types.js"; /** Minimal structured logger matching the harness pattern. */ interface Logger { debug: (msg: string, data?: unknown) => void; warn: (msg: string, data?: unknown) => void; error: (msg: string, data?: unknown) => void; } /** * Inject a structured logger into the delegation-persistence module. * Called by the plugin composition root to wire the harness-level logger. */ export declare function setDelegationPersistenceLog(injected: Logger): void; export declare function getDelegationsFilePath(): string; /** * Returns the list of delegation IDs currently in the WAL pending state. * If no WAL marker exists, returns an empty array (no pending operations). */ export declare function getPendingWalDelegationIds(): string[]; export declare function persistDelegations(delegations: Delegation[]): void; export declare function readPersistedDelegations(): Delegation[]; export {}; //# sourceMappingURL=delegation-persistence.d.ts.map