feat: Update Mattermost sync command to fetch context into inbox only and add promote project context command
This commit is contained in:
@@ -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
|
||||
|
||||
43
.opencode/commands/promote-project-context.md
Normal file
43
.opencode/commands/promote-project-context.md
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
description: Promote confirmed project facts from the inbox into Fidelity workspace memory
|
||||
---
|
||||
|
||||
Promote confirmed Fidelity project context into the workspace.
|
||||
|
||||
Read:
|
||||
|
||||
@ai/AGENTS.md
|
||||
@ai/context/project.md
|
||||
@ai/state/current.md
|
||||
@knowledge/workspace-model.md
|
||||
@knowledge/communication-rules.md
|
||||
|
||||
Today's log, if present:
|
||||
|
||||
!`if [ -f ai/logs/$(date +%F).md ]; then cat ai/logs/$(date +%F).md; else echo "No log exists for today yet."; fi`
|
||||
|
||||
Current Mattermost inbox, if present:
|
||||
|
||||
!`if [ -f ai/inbox/mattermost-latest.md ]; then cat ai/inbox/mattermost-latest.md; else echo "No Mattermost inbox file is available."; fi`
|
||||
|
||||
User direction or facts to promote:
|
||||
|
||||
$ARGUMENTS
|
||||
|
||||
Instructions:
|
||||
|
||||
- Promote only confirmed project-relevant facts
|
||||
- Ignore tooling noise and sync status
|
||||
- Update the smallest correct set of files among:
|
||||
- `ai/logs/$(date +%F).md`
|
||||
- `ai/state/current.md`
|
||||
- `ai/context/project.md`
|
||||
- `ai/context/decisions/*.md`
|
||||
- Prefer concrete project updates over broad summaries
|
||||
- If a fact is still ambiguous, do not promote it
|
||||
|
||||
Return:
|
||||
|
||||
1. Updated files
|
||||
2. Promoted project facts
|
||||
3. Remaining uncertainty
|
||||
Reference in New Issue
Block a user