Spaces:
Sleeping
Sleeping
Commit History
-
fix: close 4 post-merge review gaps in continuity threads
Post-merge fix wave on the whole-branch review of continuity-threads: - Verification: continuity_threads now goes through the same fail-closed filtering (_filter_unverified_claims) and reliability recompute (_collect_facts) as earnings_quality_signals/ between_the_lines, so an unverified/hallucinated thread evidence item is dropped before it can be persisted to data/threads.db or shown on screen, and never keeps the LLM's self-assigned reliability. - storage/threads_db.py: mark_missed and continue_thread are now idempotent per period, so regenerating a brief for the same filing period (a normal Streamlit action) no longer double-counts a missed quarter or duplicates a history row. - Error isolation: continuity_node, the apply_continuity_threads call in synthesis_node, and continuity_view.render() now wrap their new threads_db I/O in try/except and fail gracefully, matching the established pattern elsewhere in the codebase (signals_node, _finalize_synthesis_pr…05863a5 -
fix: revert mark_missed to spec - no synthetic history below stale threshold
Reverts synthetic "carried over" history entries added below the STALE_AFTER_MISSED_PERIODS threshold. Per design spec and brief Step 3, mark_missed should only append a history entry when transitioning to stale. Below threshold it performs a silent UPDATE of missed_count. Also corrects test assertion: history should have 2 entries (create + continue), not 3, since sub-threshold mark_missed doesn't append. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>0a8ebab -
feat: add threads_db persistence layer for continuity threads
Implements thread persistence using SQLite with full audit trail. Tracks named issues (threads) across quarterly regenerations with status transitions (new→ongoing→escalated→resolved/stale) and history of each change. Auto-retires threads to stale after 2 missed consecutive periods. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>30a8229