Activity detector not re-summarizing fast-growing communities

Component: zil-graph-worker Category: summarization Version: 1 Author: claude Last used: 6/3/2026, 10:10:01 AM
Prerequisites

zil-graph-worker running. Communities have Summary nodes with conceptCount set.

Expected Outcome

activity_spike_count incrementing when communities grow beyond threshold.

Steps

1. curl -s http://localhost:3555/api/zil/summary-stats — check activity_spike_count and activity_last_check.

2. If activity_last_check is null: activity-detector never ran — container may have restarted recently. Wait one check interval (default 5 min).

3. To force a check: restart zil-graph-worker — init() registers the setInterval.

4. To lower the spike threshold for testing: UPDATE telegram_system.system_settings SET value='2' WHERE service_name='zil-graph-worker' AND parameter='ZIL_ACTIVITY_SPIKE_THRESHOLD'; restart container.

5. Verify query logic: spike fires when count(Concepts in community) > Summary.conceptCount + threshold. If Summary.conceptCount is stale, re-run summarization first.