Skip to content

fix(nudge): throttle idle goal notification scans#887

Open
TZZheng wants to merge 1 commit into
Lingtai-AI:mainfrom
TZZheng:fix/issue-751-goal-nudge-throttle-telegrambot
Open

fix(nudge): throttle idle goal notification scans#887
TZZheng wants to merge 1 commit into
Lingtai-AI:mainfrom
TZZheng:fix/issue-751-goal-nudge-throttle-telegrambot

Conversation

@TZZheng

@TZZheng TZZheng commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • throttle IDLE goal-notification scans to once per 10 seconds with per-agent monotonic state
  • preserve the post-refactor: extract notification store port #881 NotificationStore.snapshot(allow) boundary; no direct filesystem reads or persistent throttle state
  • add deterministic fake-clock coverage for cadence expiry, clearing, dismissal/republication, and delete/reappear behavior
  • update both relevant anatomy documents

Tests

  • focused notification validation — 136 passed in 8.00s
  • tests/test_goal_notification.py8 passed
  • notification store, system notification, and notification tool suites — 70 passed
  • git diff --check — passed

Goal-state changes can be observed up to 10 seconds later, by design.

Fixes #751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

goal nudge check does unthrottled disk I/O on every 1s heartbeat tick while IDLE, violating the run_checks contract

1 participant