/** * Forge Loop State — RC6 가드 (US-M1) * * 직전 forge-loop 의 findings 또는 진행 중 stories 를 ≤1KB 요약으로 렌더한다. * SessionStart 와 UserPromptSubmit 두 hook 이 공유하는 단일 진입점. * * RC6 자기증거: 본 세션 R1 에서 head -80 으로 forge-loop.json 을 읽어 findings * 8줄(line 92~99)이 잘렸음. 결과적으로 직전 결론을 컨텍스트에 못 가져 같은 * 가설을 재발. 이 모듈은 그 회귀를 시스템 레벨에서 차단한다. */ interface ForgeLoopStory { id: string; title: string; passes?: boolean; } export interface ForgeLoopState { active?: boolean; task?: string; startedAt?: string; completedAt?: string; stories?: ForgeLoopStory[]; findings?: Record; } export declare function readForgeLoopState(filePath?: string): ForgeLoopState | null; /** SessionStart 용 — 완료된 forge-loop 의 findings 또는 진행 중 stories 요약. */ export declare function renderForgeLoopForSession(state: ForgeLoopState | null, now?: number): string | null; /** UserPromptSubmit 용 — active=true 시에만 짧은 진행 상황 1~2줄. */ export declare function renderForgeLoopForPrompt(state: ForgeLoopState | null, now?: number): string | null; /** 테스트 노출용 상수 — 회귀 시 임계값 변경 즉시 감지. */ export declare const FORGE_LOOP_LIMITS: { readonly SOFT_STALE_MS: number; readonly HARD_STALE_MS: number; readonly MAX_INJECT_BYTES: 1024; readonly MAX_PENDING: 5; }; export {};