honcho/src/deriver
lilyplasticlabs 1487cd269f fix(dreamer): threshold and time-guard semantics
Finding 2: filter count_stmt on documents.level == 'explicit' in
check_and_schedule_dream. Dreamer-created levels (deductive, inductive,
contradiction) are consolidation output, not input, and would otherwise
inflate the threshold count and create a feedback loop.

Finding 3 (code-level): relocate last_dream_at write from enqueue_dream
(enqueue.py) to process_dream (orchestrator.py), inside the
'if result is not None' block. Duplicate enqueues can no longer reset
the 8-hour time guard clock. Failed/never-run dreams don't advance it.

Success criteria: lenient (any non-null DreamResult counts). Pending
Vineeth confirmation — will adjust to strict/middle if requested.

Tests pending in follow-up commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 15:22:57 -04:00
..
__init__.py refactor: queue manager 2025-09-05 12:47:15 -04:00
__main__.py fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
consumer.py Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
deriver.py feat: use messages from queue items for rep completed token count (#350) 2026-01-26 18:00:53 -05:00
enqueue.py fix(dreamer): threshold and time-guard semantics 2026-04-17 15:22:57 -04:00
prompts.py feat: agentic dreamer and agentic dialectic (#309) 2026-01-12 15:12:17 -05:00
queue_manager.py Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00