/** * Parts of a cacheable prompt: a static shared prefix (identical across all * agents in a wave) and a per-agent payload (varies per invocation). * * Keeping the shared portion at the start and byte-identical across calls lets * hosts reuse that context efficiently. Only the trailing task payload varies. */ export interface CacheablePromptParts { /** Static context shared across all agents in a wave (design spec, codebase * summary, repo conventions, etc.). Must be identical across calls for * reuse to apply. */ sharedPrefix: string; /** Per-invocation task-specific payload that varies between agents. */ perAgentPayload: string; } /** * Assemble a prompt that places the cacheable shared prefix first, followed by * the per-agent payload. The static portion remains at the start and identical * across all agents in a wave; only the trailing payload varies. * * - If `sharedPrefix` is non-empty, the result is `sharedPrefix + "\n\n" + perAgentPayload`. * - If `sharedPrefix` is empty, the result is just `perAgentPayload` (no leading separator). * * Use for design-review prompts, auditor-worker review packets, and * seam-negotiation prompts rather than free-form string concatenation. */ export declare function buildCacheablePrompt(parts: CacheablePromptParts): string; /** * Host instruction emitted in dispatch step prompts: each subagent should * receive its `prompt_path` file path and follow it directly. Loading worker * prompts into the main conversation inflates context for no benefit — the * worker executes in its own context and reports results back through its * assigned result path. Single-sourced so audit-code and remediate-code stay * in parity on the dispatch handoff policy. */ export declare const DISPATCH_PROMPT_HANDOFF_NOTE: string; /** * Adversarial-review independence mandate — LANE-CLASS-conditional, never * capability-conditional (design resolution 2, gate-resolved 2026-08-05; origin * CP-BLOCK-IMPL-mandatory-independent-critic). The mandate keys on what the lane * IS (an adversarial review of work an agent authored), not on what the host * reports it can do: one capability-neutral text carries both the mandate and * the explicitly-degraded no-subagent fallback, so the same artifact renders on * every host and an author self-review is never licensed at full strength. * Single-sourced so audit-code and remediate-code stay in parity. * * `depth: "light"` is remediate's proportionate low-risk floor (T1 slice 3) — a * lightweight inline self-check, never skipped; it is a DEPTH policy, orthogonal * to capability, and stays. */ export declare function renderIndependentReviewMandate(depth?: "light" | "full"): string; /** * Capability-neutral fan-out execution instruction (design resolution 2, * 2026-08-05): every fan-out step materializes its lane prompt files and hands * the host ONE instruction that reads identically in every environment — * subagents when a facility exists, sequential self-execution when not. Only * the concurrency hint is capability-sensitive. Lane prompt files are * ADVANCE-FREE (no continue-command inside them); the step prompt owns the * advance. Single-sourced so audit-code and remediate-code stay in parity. */ export declare function renderFanoutExecutionLines(params: { /** Human label + prompt path (+ optional explicit result path) per lane. */ lanes: { label: string; promptPath: string; resultPath?: string; }[]; /** Host-declared max concurrent subagents, when known. */ concurrencyHint?: number | null; }): string[]; /** * Host instruction emitted in dispatch step prompts: any working files the * host improvises while driving the dispatch (batch lists, generated helper * scripts, notes) go into the run-scoped scratch directory, never the audited * repository's tree. Untracked scratch left at the repo root enters the next * audit's intake walk and findings end up citing the previous run's litter. * Single-sourced so audit-code and remediate-code stay in parity. */ export declare function renderHostScratchNote(scratchDirPath: string): string; //# sourceMappingURL=prompts.d.ts.map