~bigbes/agents-dev · parade

main · last commit 13 days ago · 7g0stsfu

← Back to the parade

ah-gg3 [bug] finalize re-posts the whole result comment on every refinalize tick Lined Up

status: open P3 bug milestone:v0.2.0
bd update ah-gg3 --claim bd close ah-gg3
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-08-05T00:23:50Z
Updated2026-08-05T00:23:50Z
Description
Found while fixing ah-1cx.10.

Neither successComment nor failureComment has a once-only guard, so an interrupted finalize that retries N ticks posts N identical 'In Review' or 'failed' comments on the card. Both PARK paths now have once-per-attempt discipline (ah-1cx.2 for delegation, ah-1cx.10 for questions, each via the kv marker's alarmed flag); the terminal comments never got it, and they are the ones a human actually reads.

The refinalize path is not hypothetical — it is the ah-1cx.2 / ah-1cx.10 failure mode: a run row finished while the record flip failed, so the loop re-enters finalize every tick until it succeeds. Each of those ticks currently repeats the result comment.
Acceptance criteria
A finalize repeated N times posts exactly one result comment. Covered by a reconcile test that drives finalize twice on the same attempt and asserts a single comment.

Depends on

No outgoing dependencies.

Depended on by

Nothing depends on this issue.

No comments.

  • Eugene Blikh created the issue · 2026-08-05T03:23:50Z
  • Eugene Blikh added label milestone:v0.2.0 · 2026-08-05T03:24:02Z
Stored rows — what this pane was built from, as read
issues 1 row
id ah-gg3
content_hash 1b0629cf6849825e4ca302ed954d174f94f23da4fe1e01baa6339673a5b90574
title [bug] finalize re-posts the whole result comment on every refinalize tick
description Found while fixing ah-1cx.10. Neither successComment nor failureComment has a once-only guard, so an interrupted finalize that retries N ticks posts N identical 'In Review' or 'failed' comments on the card. Both PARK paths now have once-per-attempt discipline (ah-1cx.2 for delegation, ah-1cx.10 for questions, each via the kv marker's alarmed flag); the terminal comments never got it, and they are the ones a human actually reads. The refinalize path is not hypothetical — it is the ah-1cx.2 / ah-1cx.10 failure mode: a run row finished while the record flip failed, so the loop re-enters finalize every tick until it succeeds. Each of those ticks currently repeats the result comment.
design
acceptance_criteria A finalize repeated N times posts exactly one result comment. Covered by a reconcile test that drives finalize twice on the same attempt and asserts a single comment.
notes
status open
priority 3
issue_type bug
assignee NULL
estimated_minutes NULL
created_at 2026-08-05T00:23:50Z
created_by Eugene Blikh
owner bigbes@gmail.com
updated_at 2026-08-05T00:23:50Z
closed_at NULL
closed_by_session
external_ref NULL
spec_id
compaction_level 0
compacted_at NULL
compacted_at_commit NULL
original_size NULL
sender
ephemeral 0
wisp_type
pinned 0
is_template 0
mol_type
work_type
source_system
metadata �{}
source_repo
close_reason
event_kind
actor
target
payload
await_type
await_id
timeout_ns 0
waiters
hook_bead
role_bead
agent_state
last_activity NULL
role_type
rig
due_at NULL
defer_until NULL
no_history 0
started_at NULL
is_blocked 0
labels 1 row
issue_id ah-gg3
label milestone:v0.2.0
events 2 rows
id 019fcf4e-1a0d-73f3-bc2b-54daa24394fd
issue_id ah-gg3
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-08-05T03:23:50Z
id 019fcf4e-4a32-7c9a-9c83-b9493b78d924
issue_id ah-gg3
event_type label_added
actor Eugene Blikh
old_value NULL
new_value NULL
comment Added label: milestone:v0.2.0
created_at 2026-08-05T03:24:02Z