Agents Builders

Atomic capture API endpoint

Archived
atomic-capture-api-endpoint

Created

Jun 30, 21:40

Started

Jun 30, 21:43

Completed

Jun 30, 23:22

DevOps handoff

Type

Feature

Shape

backend

Worktree Slug

atomic-capture-api-endpoint

Repositories

mcritchie-studio

Release Slug

Branch

feat/atomic-capture-api-endpoint

Local URL

QA URL

Production URL

auth

Acceptance Criteria

  • Authed endpoint creates one atomic action
  • Map request fields to capture call
  • Return created action or no content
  • Best effort never raises to caller

Expected Test Plan

  • [unit] params map to capture call
  • [integration] post creates action auth required

Checks Run

  • [unit] params map onto AtomicAction.capture attributes
  • [unit] blank scalars dropped; tokens/cost/slugs not permitted
  • [integration] POST persists one AtomicAction, returns 201 + JSON
  • [integration] minimal body captures with capture defaults
  • [integration] auth required - 401 without/invalid token
  • [integration] capture miss returns 204, never 500
  • [full-suite@b52a3243a5a9f9f8a0cf9143281a68d564acf21d] bin/rails test green
  • [rubocop@b52a3243a5a9f9f8a0cf9143281a68d564acf21d] bin/rubocop clean

Agent Context

Phase B live-capture, half 1. POST /api/v1/atomic_actions (authed — mirror Api::V1::TaskEventsController auth/token) calling AtomicAction.capture (already in release, forward-only best-effort). Body: session_id (req), kind (req), task_slug?, mascot?, input?, output?, outcome?, actor?, stage?, occurred_at?, duration_ms?. Returns 201+action or 204. This is the endpoint the Claude Code PostToolUse hook (parallel task tool-call-capture-hook) POSTs to — keep the contract exactly those fields. Per-action tokens/cost and event/result slugs arrive null from the hook (filled later by grading).

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.

Sizing Avi · PO SMALL Dev SMALL Actual XL ≠ forecast
  1. Created Designed
    C Caterpie
    Caterpie
    Model
    Duration
    Tokens
    Cost
    Completed Jun 30, 21:40 · 8 days ago
    api
  2. Designed Building
    C Caterpie
    Caterpie
    Model
    claude-opus-4-8
    Duration
    3 minutes
    Tokens
    7,404,752
    Cost
    ~$5.00
    Started Jun 30, 21:40
    Completed Jun 30, 21:43 · 8 days ago
    cli
  3. Building Submitted
    C Caterpie
    Caterpie
    Model
    claude-opus-4-8
    Duration
    8 minutes
    Tokens
    Cost
    Started Jun 30, 21:43
    Completed Jun 30, 21:52 · 8 days ago
    cli
  4. Submitted Reviewed Review Activity
    C Carl
    Carl primary
    S Shannon
    Shannon light
    Model
    claude-opus-4-8
    Duration
    1 minute
    Tokens
    1,871,211
    Cost
    ~$1.03
    Started Jun 30, 21:52
    Completed Jun 30, 21:53 · 8 days ago
    cli
  5. Reviewed Assembled
    S Steffon
    Steffon
    Model
    claude-opus-4-8
    Duration
    9 minutes
    Tokens
    6,947,702
    Cost
    ~$4.29
    Started Jun 30, 21:53
    Completed Jun 30, 22:02 · 8 days ago
  6. Assembled Shipped
    A Avi
    Avi
    Model
    claude-opus-4-8
    Duration
    about 1 hour
    Tokens
    35,364,506
    Cost
    ~$23.29
    Started Jun 30, 22:02
    Completed Jun 30, 23:22 · 8 days ago
  7. Shipped Archived
    Model
    Duration
    3 days
    Tokens
    Cost
    Started Jun 30, 23:22
    Completed Jul 04, 03:23 · 4 days ago

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)

SMALL

Dev

SMALL

Actual

XL