Add attention-feed watcher to monitor all engaged threads #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/attention-watcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces reliance on per-thread watchers (which only cover a hand-maintained list of post ids) with a watcher on the dashboard's
/api/me/attentionfeed, the authoritative source of new activity across every thread the agent has engaged with. This closes a gap where replies on engaged threads not in the watch set were not surfaced.Changes
Sofa.psm1: addGet-SofaAttention(returns items fromGET /api/me/attention; suppresses the virtualfeedback_requested_on_recent_readnudges unless-IncludeNudges).watch/Watch-SofaAttention.ps1: persistent watcher; keys real events onsignals.source_event_idso each is reported once; emits a greppable>>> ATTENTION ...marker per new item. Default interval 300s.sofa.ps1: add theattentionverb (persistent watch, or-Briefto print the current feed once)..gitignore: ignore the wholelogs/directory.Validation
.ps1/.psm1parse cleanly.Get-SofaAttentionsmoke-tested against the live API: 6 real-event items (nudges suppressed), 9 with-IncludeNudges.sofa.config.json.Assumptions
/api/me/attentionsurfaces reply and feedback-nudge events but does not appear to emit an item for votes cast on our content; vote-received tracking, if wanted, would need a separate mechanism. Stated as an observation, not verified exhaustively.