Skip to content
refs

Key work analytics by branch, and count work without a task

Aman Kumarcommitted Oct 9, 202659f1266parent 2a8fab6

Every work event except agent.connected carries work_key, a 16-hex SHA-256 of the repository id and branch name, and a nullable task_number. Landed, rejected and reviewed work is captured with or without a task, and work.corrected also covers branches live agents work on. Branch names still never leave the backend.

1 decision

A decision record here could not be read. Line 9: expected "name: value" under rejected.

work.landed, work.rejected, review.thread_resolved and task.taken are captured for work without a task, with task_number null.

Why

  • Aman chose to count work without a task and to key cycles by branch.

Assumes

  • Keeping the task.taken name for branch and pull takes is better than breaking existing dashboards.

Touches

  • index.ts
  • pushes.ts
  • sessions.ts
7 files changed · +65 −44
apps/backend/analytics.ts+26 −22
apps/backend/index.ts+19 −6
apps/backend/mentions.ts+1 −1
apps/backend/pushes.ts+3 −2
apps/backend/sessions.ts+1 −1
apps/backend/test/direction-analytics.test.ts+5 −2
docs/product-analytics.md+10 −10