db76a1a531
Remove boulder session restriction (f84ef532) and stagnation cap (10a60854) that prevented continuation from firing in regular sessions. Changes: - Remove boulder/subagent session gate in idle-event.ts — continuation now fires for ANY session with incomplete todos, as originally intended - Remove stagnation cap (MAX_UNCHANGED_CYCLES) — agent must keep rolling the boulder until all todos are complete, no giving up after 3 attempts - Remove lastTodoHash and unchangedCycles from SessionState type - Keep 30s cooldown (CONTINUATION_COOLDOWN_MS) as safety net against re-injection loops - Update tests: remove boulder gate tests, update stagnation test to verify continuous injection, update non-main-session test to verify injection 42 tests pass, typecheck and build clean.
21 lines
724 B
TypeScript
21 lines
724 B
TypeScript
import { createSystemDirective, SystemDirectiveTypes } from "../../shared/system-directive"
|
|
|
|
export const HOOK_NAME = "todo-continuation-enforcer"
|
|
|
|
export const DEFAULT_SKIP_AGENTS = ["prometheus", "compaction"]
|
|
|
|
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
|
|
- Do not stop until all tasks are done`
|
|
|
|
export const COUNTDOWN_SECONDS = 2
|
|
export const TOAST_DURATION_MS = 900
|
|
export const COUNTDOWN_GRACE_PERIOD_MS = 500
|
|
|
|
export const ABORT_WINDOW_MS = 3000
|
|
export const CONTINUATION_COOLDOWN_MS = 30_000
|