feat: enhance Mattermost integration with focused context for standups and improved channel filtering

This commit is contained in:
2026-05-20 07:47:19 -06:00
parent 3d4da1919a
commit ee35f70c3e
6 changed files with 142 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ Generate a standup update for the active project profile.
## Required refresh
- At the start of the day, fetch or read refreshed Mattermost evidence before drafting. Prefer the local proxy mirror through `scripts/mattermost-proxy/read-context.py` when it exists; legacy sync output is fallback evidence.
- Fetch both latest available messages and previous-workday activity when the connector supports both modes.
- Fetch focused standup evidence with `python3 scripts/mattermost-proxy/read-context.py --mode standup --today YYYY-MM-DD`; this reads previous-workday and today records from date-bucketed mirror files and should filter through the active profile's configured `AIW_MATTERMOST_CONTEXT_CHANNELS` when available. Do not read broad `latest.md` for standups unless the focused date-bucketed view is unavailable and you explicitly label the fallback as broad/noisy.
- If Mattermost refresh fails, say so internally and use only saved workspace memory with clear caution; do not invent fresher context.
- Do not skip communication refresh for standup just to reduce latency, because stale standups cost more time to correct later.