Created
Jul 01, 06:02
Started
Jul 01, 06:07
Completed
Jul 01, 12:10
DevOps handoff
Type
Feature
Shape
backend
Worktree Slug
event-outcomes-and-session-end
Repositories
mcritchie-studio
Release Slug
—
Branch
feat/event-outcomes-and-session-end
Local URL
—
QA URL
—
Production URL
—
Acceptance Criteria
Expected Test Plan
Checks Run
Agent Context
Patch the narrated-events system (all shipped, in release). THREE fixes: (1) OUTCOMES resolve: most spans stay 'in progress' because the agent OPENS the next span (auto-closing the prior with a NULL outcome) instead of ending it. Add a single BOUNDARY call to bin/atomic-event so the agent closes-prior-with-outcome AND opens-next-with-reason in one step — e.g. 'bin/atomic-event next --outcome \"what happened\" --category X --reason \"what next\"'; also accept --outcome on 'start' to stamp the auto-closed prior span's outcome. Extend POST /api/v1/atomic_events (open) to accept a prior-outcome, or the close endpoint. (2) HANGING SPAN: a session that ends leaves its last span open forever + trailing actions unlabeled. Add 'bin/atomic-event close-open' (closes any still-open span for the session, generic outcome like 'session ended') + wire a Claude Code SessionEnd hook (provide the settings.json snippet + install-agent-docs wiring, like the PostToolUse hook; the orchestrator installs it after review). (3) MODEL: bin/atomic-capture-hook should stamp the session model on each action if it's available in the PostToolUse payload/env (AtomicAction.model column already exists) — investigate what's actually available; if not, leave null and REPORT what you found (don't fabricate). Keep everything best-effort/non-fatal. AtomicEvent + endpoints are in release.
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.
No task feedback has been recorded yet.
Sealed-bid sizing
Edit →Alex (PM)
—
Avi (PO)
MEDIUM
Dev
MEDIUM
Actual
XL
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.