/** * v0.4 โ€” `/AGENTS.md` loader. * * AGENTS.md is the **single** workspace persistent guide (v0.4 decision โ€” * see docs/plan/v0.4-autonomous-engine.md ยง4.2). Human-edited only. Loaded * once at the start of each `solosquad goal run` and merged with goal.md * frontmatter to produce the final Input/Runtime/Output guards. * * The loader extracts well-known sections by name; everything else is * passed through as `raw_body` for the PM session's system prompt. * * Tolerance contract: if AGENTS.md is missing OR a section is missing, we * use safe defaults. Parse errors only thrown when a section IS present * but has malformed content (e.g. non-string list items). */ export interface PersistentGuide { /** True iff AGENTS.md existed at the loaded path. */ exists: boolean; /** Absolute path that was inspected. */ source_path: string; /** Raw file contents (CRLF-normalized). Empty string if missing. */ raw_body: string; /** "SoloSquad v0.4 โ€” Autonomous Goal Conventions" section. */ immutable_paths: string[]; modifiable_paths: string[]; /** External side-effects policy. */ forbidden_side_effects: string[]; /** Domain whitelist for outbound HTTP. Empty array = block all external. */ external_domain_whitelist: string[]; /** Guardrail numeric thresholds. Defaults applied when missing. */ stage_timeout_seconds: number; consecutive_discard_limit: number; cost_cap_warning_pct: number; } export declare const DEFAULT_GUIDE: Omit; export declare function agentsMdPath(workspace: string): string; export declare function loadAgentsMd(workspace: string): PersistentGuide;