Files
fidelity-ai-workspace/.opencode/commands/communication-sync.md
david.delagneau 8026da5719 Refactor AI workspace for improved context management and communication integration
- Introduced new commands and skills for workspace memory curation, professional communication, and status reporting.
- Updated existing commands to utilize new skills and improve clarity in instructions.
- Created a new workspace context command to load reusable core and active project profile.
- Enhanced Mattermost inbox integration with support for generic environment variables.
- Established a clear separation between project-independent core logic and project-specific profiles.
- Improved documentation across various files to reflect changes in workflow and command usage.
- Added operational memory management rules to ensure accurate context promotion and correction.
- Updated README and workflow documents to guide users in utilizing the new structure effectively.
2026-04-16 08:35:53 -06:00

2.1 KiB

description
description
Sync live communication context and promote high-confidence memory

Use the configured live communication connector to fetch fresh evidence and maintain workspace memory automatically.

Preferred command sources:

  • AIW_MATTERMOST_SYNC_CMD
  • compatibility fallback: FIDELITY_MATTERMOST_SYNC_CMD
  • workspace fallback: bash scripts/mattermost/sync.sh

Run the connector:

!if [ -n "$AIW_MATTERMOST_SYNC_CMD" ]; then bash -lc "$AIW_MATTERMOST_SYNC_CMD"; elif [ -n "$FIDELITY_MATTERMOST_SYNC_CMD" ]; then bash -lc "$FIDELITY_MATTERMOST_SYNC_CMD"; elif [ -f scripts/mattermost/sync.sh ]; then bash scripts/mattermost/sync.sh; else echo "No live communication sync command is configured."; fi

Read:

@core/README.md @core/memory/operational-memory.md @core/integrations/communication-model.md @ai/AGENTS.md @ai/context/index.md @ai/context/project.md @ai/context/process/context-maintenance.md @ai/work-items/index.md @ai/state/current.md @ai/state/work-items.md @knowledge/memory-promotion-rules.md

Fresh communication evidence:

!if [ -s ai/inbox/mattermost-latest.md ]; then cat ai/inbox/mattermost-latest.md; elif [ -s scripts/mattermost/generated/mattermost_context.jsonl ]; then cat scripts/mattermost/generated/mattermost_context.jsonl; else echo "No communication evidence available."; fi

Instructions:

  • if the sync command failed, stop and do not edit workspace memory
  • treat connector output as evidence, not automatically as project truth
  • promote only explicit, project-relevant, high-confidence facts
  • default destination is ai/logs/$(date +%F).md
  • update ai/state/current.md only for facts that materially change the active work window
  • update ai/work-items/*.md for explicit work-item IDs, approved titles, points, scope, and status notes
  • keep ai/state/work-items.md aligned as the compact summary of active work items
  • do not write tooling noise, sync status, or generic chat chatter into project memory
  • if a fact is ambiguous, skip it rather than asking what to do

Return:

  1. What was synchronized
  2. Which files were updated
  3. Which facts were promoted or intentionally skipped