main · last commit
13 days ago ·
7g0stsfu
ah-1cx.12 reconcile hygiene: no Store.DeleteKV, and the finished audit event re-appends on a stuck refinalize
Lined Up
bd update ah-1cx.12 --claim
bd close ah-1cx.12
| Created by | Eugene Blikh |
| Owner | bigbes@gmail.com |
| Created | 2026-08-04T23:43:11Z |
| Updated | 2026-08-04T23:43:11Z |
Two small findings from the ah-1cx.2 work, neither urgent. 1. Store has no DeleteKV, so ah-1cx.2's delegation-park marker is 'cleared' by writing an empty string. A long-lived instance therefore accumulates one dead kv row per delegating attempt. Bounded and harmless, but a real DeleteKV (in internal/store, outside the reconcile change's file scope) would be cleaner and would let the marker be removed rather than tombstoned. 2. The 'finished' audit event re-appends on every stuck refinalize tick. appendEvent dedups only against the task's MOST RECENT event, and the refinalize path alternates event kinds, so the dedup never fires. Pre-existing, and harmless while refinalize stalls are rare — worth a cheap guard if they ever become common.
Store exposes DeleteKV and the delegation-park marker uses it; appendEvent's dedup survives an alternating-kind refinalize loop.
ah-1cx
— Hardening: post-audit bug sweep (2026-07-20)
parent-child
open
Nothing depends on this issue.
| id | ah-1cx.12 |
| content_hash | 87493dc59cdef62816e7d9263a77115f54898c15ccb5682ab6669ef6dc10e0fd |
| title | reconcile hygiene: no Store.DeleteKV, and the finished audit event re-appends on a stuck refinalize |
| description | Two small findings from the ah-1cx.2 work, neither urgent. 1. Store has no DeleteKV, so ah-1cx.2's delegation-park marker is 'cleared' by writing an empty string. A long-lived instance therefore accumulates one dead kv row per delegating attempt. Bounded and harmless, but a real DeleteKV (in internal/store, outside the reconcile change's file scope) would be cleaner and would let the marker be removed rather than tombstoned. 2. The 'finished' audit event re-appends on every stuck refinalize tick. appendEvent dedups only against the task's MOST RECENT event, and the refinalize path alternates event kinds, so the dedup never fires. Pre-existing, and harmless while refinalize stalls are rare — worth a cheap guard if they ever become common. |
| design | |
| acceptance_criteria | Store exposes DeleteKV and the delegation-park marker uses it; appendEvent's dedup survives an alternating-kind refinalize loop. |
| notes | |
| status | open |
| priority | 4 |
| issue_type | chore |
| assignee | NULL |
| estimated_minutes | NULL |
| created_at | 2026-08-04T23:43:11Z |
| created_by | Eugene Blikh |
| owner | bigbes@gmail.com |
| updated_at | 2026-08-04T23:43:11Z |
| 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 |
| issue_id | ah-1cx.12 |
| label | milestone:v0.2.0 |
| id | f92bc1a7-18f4-50f7-8fdd-a4b35c2638a9 |
| issue_id | ah-1cx.12 |
| type | parent-child |
| created_at | 2026-08-05T02:43:10Z |
| created_by | Eugene Blikh |
| metadata | �{} |
| thread_id | |
| depends_on_issue_id | ah-1cx |
| depends_on_wisp_id | NULL |
| depends_on_external | NULL |
| id | 019fcf28-e1fd-7c29-9c19-24c1561763d9 |
| issue_id | ah-1cx.12 |
| event_type | created |
| actor | Eugene Blikh |
| old_value | |
| new_value | |
| comment | NULL |
| created_at | 2026-08-05T02:43:10Z |
| id | 019fcf42-1a96-71cc-89e5-0cf421abc8a8 |
| issue_id | ah-1cx.12 |
| 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:10:43Z |
No comments.