/** * Session-scope parent resolution and task creation with session scope. * * Provides resolveParentFromSession (3-mechanism parent resolution) and * addTaskWithSessionScope (creates a task with session-scope parent inheritance). * * Extracted from task-engine.ts as part of the T1566 engine-migration epic * (ADR-057, ADR-058). * * Per T9337 / Council 20260515T211404Z, the create-time verifier gate * (T9218 / ADR-070) is removed. Enforcement of the anti-scaffold-and-mark-done * invariant now lives entirely at `cleo complete` via the ADR-051 evidence-atom * Pre-Complete Gate Ritual (commit, files, tool, test-run, decision atoms). * * @task T1568 * @task T9337 * @epic T1566 * @adr ADR-057 * @adr ADR-058 * @adr ADR-051 */ import type { TaskRecord } from '@cleocode/contracts'; import { type EngineResult } from '../engine-result.js'; /** * Resolve the parent task ID through 3 mechanisms in priority order (T090): * 1. Explicit --parent flag (already resolved by caller) * 2. --parent-search fuzzy title match * 3. Session-scoped epic inheritance (when session scope is epic:T###) * * @param projectRoot - Absolute path to the project root * @param params - Resolution parameters * @returns Resolved parent ID or null * * @task T1568 * @epic T1566 */ export declare function resolveParentFromSession(projectRoot: string, params: { parent?: string | null; parentSearch?: string; type?: string; }): Promise<{ resolvedParent: string | null; error?: EngineResult; }>; /** * Create a new task with session-scope parent resolution. * * Replaces taskCreate from task-engine.ts. Wraps addTask with the 3-mechanism * parent resolution logic (explicit parent, parent-search, session epic scope). * * @param projectRoot - Absolute path to the project root * @param params - Task creation parameters * @returns EngineResult with the created task record and duplicate flag * * @task T1568 * @epic T1566 */ export declare function addTaskWithSessionScope(projectRoot: string, params: { title: string; description?: string; parent?: string; depends?: string[]; priority?: string; labels?: string[]; type?: string; phase?: string; size?: string; acceptance?: string[]; notes?: string; files?: string[]; dryRun?: boolean; parentSearch?: string; kind?: string; scope?: string; severity?: string; /** * Bypass the BRAIN duplicate-detection rejection guard (T1633). * Audited to `.cleo/audit/duplicate-bypass.jsonl`. */ forceDuplicate?: boolean; }): Promise>; //# sourceMappingURL=session-scope.d.ts.map