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

@@ -29,6 +29,7 @@ These are also loaded through `opencode.json`.
- If `ai/inbox/mattermost-latest.md` exists, inspect it for fresher communication context before answering standup, status, or manager-message prompts.
- If a sync command, extraction script, or inbox refresh fails, do not update logs, state, or context files from that failed attempt.
- Treat sync failures as operational errors, not project context.
- `mattermost-sync` should refresh inbox context only. It must not update `ai/logs/`, `ai/state/`, or stable context files unless the user explicitly asks to promote confirmed project facts.
- If the user provides durable new facts, update the appropriate context files instead of leaving the new information only in chat history.
- If a previous context file is now stale or inaccurate, update that file directly.
- Prefer correcting canonical context over appending contradictory notes.