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
feat(ri-exchange): list and resolve stuck direct-execution rows (follow-up to #1829) #1836
#1829 makes an AWS direct RI exchange whose outcome is unknown (the accept response was lost) or a stuck submitted block the same source RI in every path: direct execute, AUTO and approve. That's fail-safe. But there's no API to settle such a row once an operator has checked AWS, so today the only way to unblock the RI is a manual DBA step (runbooks/ri-exchange-direct-execution-settle.md).
A resolve endpoint, analogous to POST /api/ri-exchange/resolve/<id> for history rows. An operator marks a row completed (AWS shows the exchange) or failed (it doesn't), with a note. Permission-gated and audited.
Audit-rule question. Audit rows are currently never rewritten from unknown. Decide between resolution columns (resolved_status, resolved_by, resolved_at, note) via a migration, and allowing the status transition. Resolution columns preserve the original outcome; the runbook currently rewrites status in place as an interim.
The same safety rules as the runbook SQL: settle a submitted row only after the 4-minute execution window plus margin (created_at < now() - interval '5 minutes'); never touch Azure rows; and confirm the row still blocks the guard until settled, and stops blocking after.
Tests for both directions, plus openapi.
Owner decision D1 on #1829 accepted shipping the guard before this exists, with the runbook as the interim.
Claimed by claude-darling: planning (list and resolve endpoints for stuck direct-execution rows; follow-up to #1829/#1838). Local commits until a platform slot frees.
Claimed by claude-darling: implementing (plan review closed after 10 passes; #1840 merged via #1841). T1 migration and T2 guard clause in progress, test-first, local commits.
Activity
cristim commentedon Nov 7, 2026
Claimed by claude-darling: planning (list and resolve endpoints for stuck direct-execution rows; follow-up to #1829/#1838). Local commits until a platform slot frees.
cristim commentedon Nov 7, 2026
Claimed by claude-darling: implementing (plan review closed after 10 passes; #1840 merged via #1841). T1 migration and T2 guard clause in progress, test-first, local commits.