Skip to content

fix: skip duplicate detection when upserting daily digest#158

Merged
jordanpartridge merged 1 commit into
masterfrom
fix/digest-duplicate-check
Jul 3, 2026
Merged

fix: skip duplicate detection when upserting daily digest#158
jordanpartridge merged 1 commit into
masterfrom
fix/digest-duplicate-check

Conversation

@jordanpartridge

Copy link
Copy Markdown
Contributor

Follow-up to #156, found by running the fixed synthesis in production on odin: the digest upsert ran with duplicate detection enabled, and since consecutive days of similar activity produce similar digest content, DuplicateEntryException fails the whole nightly run (observed live: 07-02 digest at 96%+ similarity with 07-03 digest → exit 1).

The title/date existence check earlier in runDigest already guards true duplicates — same-day reruns skip cleanly. Day-over-day similarity is expected behavior for digests, so checkDuplicates: false on this one upsert.

Tests pin the new argument; 15/15 passing.

Digests are intentionally similar day-over-day, so the default
similarity check throws DuplicateEntryException on consecutive active
days and fails the nightly synthesis run. The existence check by
title/date above already prevents true duplicates.
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

📊 Coverage Report

Metric Coverage Threshold Status
Lines 100% 95%

Files Below Threshold

File Coverage Uncovered Lines
app/Enums/ObservationType.php 0% None
app/Exceptions/Qdrant/QdrantException.php 0% None
app/Mcp/Servers/KnowledgeServer.php 0% None
app/Services/AgentHealthService.php 0% None

🏆 Synapse Sentinel Gate

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

🔧 Synapse Sentinel: 1 check need attention

The following issues must be resolved before this PR can be merged:


Security Audit


Review the output and fix any issues.

Quick Reference:

  • PHPStan errors → Fix type mismatches first, then missing types
  • Test failures → Read the assertion message, trace expected vs actual
  • Style issues → Run composer format to auto-fix

🤖 Generated by Synapse Sentinel - View Run

@jordanpartridge jordanpartridge merged commit 9d0cb11 into master Jul 3, 2026
1 check failed
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.

1 participant