honcho/tests
lilyplasticlabs b89997cb67 test(dreamer): threshold filter + last_dream_at relocation regression tests
Tests for Finding 2 and Finding 3 (code-level):

- TestThresholdFilter (tests/dreamer/test_dream_scheduler.py):
  * Mixed levels below explicit threshold: 30 explicit + 40 deductive
    + 10 inductive → no trigger (core regression, buggy count would trigger)
  * Explicit-only at threshold: 60 explicit → triggers
  * Contradiction excluded: 100 contradiction + 10 explicit → no trigger
    (confirms positive == "explicit" filter excludes all dreamer output)

- TestEnqueueDreamMetadataShape (tests/deriver/test_enqueue_dream.py):
  * AsyncMock-patched update_collection_internal_metadata verifies
    enqueue writes last_dream_document_count but NOT last_dream_at

- TestLastDreamAtCompletionWrite (tests/dreamer/test_dreamer_integration.py):
  * Happy path: run_dream returns DreamResult → last_dream_at written
  * Failure path: run_dream returns None → last_dream_at absent
  * Exception path: run_dream raises → last_dream_at absent,
    process_dream swallows exception (queue-processed semantics preserved)

Docstring on check_and_schedule_dream tightened: "document threshold"
-> "explicit-observation threshold" to reflect filter semantics.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 15:30:45 -04:00
..
alembic feat: make session_name nullable for documents and update related SDKs (#347) 2026-01-26 13:33:11 -05:00
bench Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
crud fix dialectic held connection (#477) 2026-04-02 11:13:09 -04:00
deriver test(dreamer): threshold filter + last_dream_at relocation regression tests 2026-04-17 15:30:45 -04:00
dialectic feat: agentic dreamer and agentic dialectic (#309) 2026-01-12 15:12:17 -05:00
dreamer test(dreamer): threshold filter + last_dream_at relocation regression tests 2026-04-17 15:30:45 -04:00
integration Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
reconciler fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
routes fix(files): handle empty json uploads safely (#434) 2026-03-18 18:36:34 -04:00
sdk ts SDK fix: adding strict checking (#421) 2026-03-30 10:57:12 -04:00
sdk_typescript Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
telemetry switch OTEL metrics to prometheus (#344) 2026-01-25 17:26:42 -05:00
unified fix: Remove noisy sentry error on llm failure and upgrade deps (#396) 2026-02-23 15:53:29 -05:00
utils Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
webhooks Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
__init__.py [0.0.10] Release 2024-07-25 13:45:27 -04:00
conftest.py Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00
test_advanced_filters.py feat: honcho 3.0, sdks 2.0, excise stainless, update v3 docs, changelogs (#331) 2026-01-22 15:16:28 -05:00
test_datetime_parsing.py create Representation class and use it to unify all formatting (#214) 2025-10-07 15:28:44 -04:00
test_dependencies.py Vineeth/force rollback (#486) 2026-04-03 11:58:03 -04:00
test_schema_validations.py fix: add migration for 'deriver' to 'reasoning' in ResolvedConfiguration (#352) 2026-01-27 11:17:49 -05:00
test_search.py Tighten Transaction Scopes (#525) 2026-04-08 11:14:50 -04:00