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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| consumer.py | ||
| deriver.py | ||
| enqueue.py | ||
| prompts.py | ||
| queue_manager.py | ||