Created
Jul 06, 02:17
Started
Jul 06, 05:10
Completed
Jul 06, 07:27
DevOps handoff
Type
Bug
Shape
backend
Worktree Slug
fix-boundary-close-broadcast
Repositories
mcritchie-studio
Release Slug
—
Branch
feat/fix-boundary-close-broadcast
Acceptance Criteria
Expected Test Plan
Checks Run
Agent Context
Carl's pr-review finding on live-activities-via-websockets (PR #412, operator-merged mid-review): bin/agent-activity next closes the prior activity via AgentActivity.open_activity! using update_all, which bypasses the new after_update_commit broadcaster — the previous row stays visually open on /agents/activities and never flashes live. Fix: close via a callback-firing write (update!/each save) or broadcast explicitly. Write the failing regression test FIRST at the lowest tier. Shannon's non-blocker for context, separate concern: the stream is global, so filtered/older pages receive inserts through shared aa-activities-head target; filter-strict live views would need their own follow-up.
Stage Timeline
Who handled each stage, the time it took (measured), and the model / tokens / cost reported (best-effort) — plus who's on it right now. — means the agent didn't report that metric.
Conversation
QA review feedback, agent handoffs, and follow-up notes for this task.
Avi review approved; ready for Steffon's qa-release sweep.
Avi review APPROVED (Carl primary + Jasper light); PR #418 broadcast fix ready for Steffon's qa-release sweep. Fix is correct: closed_prior_ids captured via lane.pluck(:id) BEFORE update_all (still .open), re-broadcast post-commit via where(id:).find_each on fresh rows carrying stamped closed_at/outcome — a faithful after_update_commit mirror; safe_broadcast preserved and now outside the txn. Both acceptance items met; 3 regression tests lock the bug (boundary broadcast + stamped-close-state + no-spurious-bare-open). CI green on head e0565916. NOTE for QA: recorded checks_run full-suite@caae3575/rubocop@caae3575 cert SHAs are STALE (pre-fix tree, not in branch lineage) — CI-green-on-head covers the actual guarantee, but the local cert SHA bookkeeping is inaccurate.
Sealed-bid sizing
Edit →Alex (PM)
—
Avi (PO)
SMALL
Dev
SMALL
Actual
LARGE
We emailed a one-tap sign-in link to . It expires shortly and can only be used once.
No email? Check spam, or close this and try again.