Skip to content

Record skipped sync pushes in the audit log - #312

Open
joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/163-sync-skipped-status
Open

joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/163-sync-skipped-status

Conversation

@joei4cm

@joei4cm joei4cm commented Dec 2, 2026

Copy link
Copy Markdown

Summary

  • Tracker push methods can now return an explicit skipped reason while existing void-returning adapters remain compatible.
  • TRACKER_SYNC records intentional skips as skipped SyncEvents instead of success, so configuration gaps no longer look like successful external writes.
  • The sync audit log renders the skipped status, adds a skipped filter, and shows the recorded reason.
  • Failed and skipped events no longer suppress legitimate inbound changes in echo detection.

Closes #163

Validation

  • Focused package Vitest run: 4 files, 83 tests passed.
  • Focused web Vitest run: sync-components.test.tsx, 27 tests passed.
  • Targeted TypeScript checks passed for shared, queue, and web.
  • Prettier check and git diff --check passed.

No database migration is needed: SyncEvent.status is already a string column.

🤖 Generated with Claude Code

Let tracker adapters return an explicit skipped reason while keeping void-compatible pushes. Record skipped SyncEvents instead of success and render the status and reason in the sync audit log. Keep failed and skipped events out of echo suppression.

Co-Authored-By: Claude Code <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A skipped sync push still records a success SyncEvent

1 participant