You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[deep-report] Add agent duplicate-discussion guard: Agent Performance Reporter created identical discussions #30826 and #30827 #30858
The Agent Performance Analyzer created two identical discussions (#30826 and #30827) with the same title "Agent Performance Report — Week of 2026-05-07" at the exact same timestamp (2026-05-07T13:24:36Z and 2026-05-07T13:24:37Z). This indicates the agent created a duplicate discussion within 1 second — likely a safe-output deduplication failure or a double-fire of the create_discussion tool.
Impact
Duplicate reports create confusion about which is authoritative
Readers may comment on the wrong discussion
Pattern suggests other agents may have similar duplicate-creation vulnerabilities
Wastes safe-output budget (1 extra discussion = 1 of the 7 max per run consumed)
Root Cause Hypotheses
The create_discussion safe-output tool was called twice (double-fire, possibly from a retry after a timeout that actually succeeded)
The agent did not check for an existing discussion before creating a new one (missing idempotency guard)
A network retry created a second discussion when the first succeeded but the response was lost
Recommended Fix
Idempotency check: Before calling create_discussion, search for an existing discussion with the same tracker-id or title pattern for today
Safe-output dedup: The safe-output server should deduplicate discussions with identical title+body within a short time window
Agent guard: Add a check in the Agent Performance Analyzer prompt: "If a discussion with today's date already exists in the reports category, update it instead of creating a new one"
Acceptance Criteria
No duplicate discussions created by Agent Performance Analyzer in the next 7 days
Idempotency guard documented in the workflow prompt
Activity