fix: deterministic dedup of agent double-posts (self-post + framework reply) #109

Merged
ffaerber merged 3 commits from fix/dedup-self-posted-replies into main 2026-07-08 09:35:20 +02:00
Owner

@pm keeps double-posting (e.g. homelab #187: self-posted report + framework transcript reply) — the prompt-level rule from #104 is ignored by the model. Enforce it in the harness instead:\n\n- fetch-thread.sh records the thread\u2019s newest comment id before the agent runs (/tmp/thread_max_cid).\n- publish.sh (pm/ops reply path): if any comment by the agent exists with a newer id, the self-post IS the reply \u2014 skip the duplicate framework comment. Ids are monotonic, no date parsing; comments fetched with the same pagination pattern as fetch-thread.\n\nMarker processing (CLOSE_ISSUE / DELEGATE / MERGE_PR / subtasks) is unaffected. Verified separately: the \ud83e\udd16 gate DID hold on #187 \u2014 no second run fired; this is purely the double-post.

@pm keeps double-posting (e.g. homelab #187: self-posted report + framework transcript reply) — the prompt-level rule from #104 is ignored by the model. Enforce it in the harness instead:\n\n- `fetch-thread.sh` records the thread\u2019s newest comment id before the agent runs (`/tmp/thread_max_cid`).\n- `publish.sh` (pm/ops reply path): if any comment by the agent exists with a newer id, the self-post IS the reply \u2014 skip the duplicate framework comment. Ids are monotonic, no date parsing; comments fetched with the same pagination pattern as fetch-thread.\n\nMarker processing (CLOSE_ISSUE / DELEGATE / MERGE_PR / subtasks) is unaffected. Verified separately: the \ud83e\udd16 gate DID hold on #187 \u2014 no second run fired; this is purely the double-post.
ffaerber added 2 commits 2026-07-08 09:34:42 +02:00
fix: skip framework reply when the agent self-posted on the thread
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 10s
1e72b9bcba
ffaerber added 1 commit 2026-07-08 09:34:42 +02:00
fix: skip framework reply when the agent self-posted on the thread
ci / lint (pull_request) Successful in 10s
ci / lint (push) Skipped
1e72b9bcba
ffaerber merged commit eeae1fdaaa into main 2026-07-08 09:35:20 +02:00
ffaerber deleted branch fix/dedup-self-posted-replies 2026-07-08 09:35:21 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea/agents#109