2026-02-08 15:01:42 +09:00
import { createSystemDirective , SystemDirectiveTypes } from "../../shared/system-directive"
export const HOOK_NAME = "todo-continuation-enforcer"
2026-03-16 10:24:57 +09:00
export const DEFAULT_SKIP_AGENTS = [ "prometheus" , "compaction" , "plan" ]
2026-02-08 15:01:42 +09:00
export const CONTINUATION_PROMPT = ` ${ createSystemDirective ( SystemDirectiveTypes . TODO_CONTINUATION ) }
Incomplete tasks remain in your todo list. Continue working on the next pending task.
- Proceed without asking for permission
- Mark each task complete when finished
2026-03-20 16:13:02 +09:00
- Do not stop until all tasks are done
- If you believe all work is already complete, the system is questioning your completion claim. Critically re-examine each todo item from a skeptical perspective, verify the work was actually done correctly, and update the todo list accordingly. `
2026-02-08 15:01:42 +09:00
export const COUNTDOWN_SECONDS = 2
export const TOAST_DURATION_MS = 900
export const COUNTDOWN_GRACE_PERIOD_MS = 500
export const ABORT_WINDOW_MS = 3000
2026-03-13 00:55:37 +08:00
export const COMPACTION_GUARD_MS = 60 _000
2026-02-25 14:16:17 +09:00
export const CONTINUATION_COOLDOWN_MS = 5 _000
2026-03-08 02:17:38 +09:00
export const MAX_STAGNATION_COUNT = 3
2026-02-16 15:00:41 +09:00
export const MAX_CONSECUTIVE_FAILURES = 5
2026-02-16 15:27:00 +09:00
export const FAILURE_RESET_WINDOW_MS = 5 * 60 * 1000