feat: Update Mattermost sync command to fetch context into inbox only and add promote project context command

This commit is contained in:
2026-04-09 14:51:06 -06:00
parent 0173e3d376
commit e6efa35ae1
4 changed files with 55 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
description: Force a Mattermost sync using the configured local script
---
Use the configured Mattermost sync command to fetch fresh communication context.
Use the configured Mattermost sync command to fetch fresh communication context into the inbox only.
Preferred command sources:
@@ -16,13 +16,14 @@ Run the command and use its output as fresh communication context:
Then:
- if the command fails, stop there and do not edit any workspace files
- if no `ai/inbox/mattermost-latest.md` exists after the sync attempt, do not update logs or stable context
- if no `ai/inbox/mattermost-latest.md` exists after the sync attempt, do not update project memory
- inspect `ai/inbox/mattermost-latest.md` if it exists
- decide whether the new information belongs in today's log, current state, or stable project context
- update the workspace only if the sync succeeded and durable facts were learned
- extract only project-relevant candidate facts
- do not update `ai/logs/`, `ai/state/`, or `ai/context/` in this command
- if important candidate facts are found, summarize them as promotion candidates for a later explicit command
Return:
1. What was synchronized
2. Which files were updated
2. Candidate project facts worth promoting
3. What still needs human confirmation