-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add remaining activity event types (task_started, tool_used, delegation, cost_incurred) #812
Copy link
Copy link
Closed
Labels
prio:mediumShould do, but not blockingShould do, but not blockingscope:medium1-3 days of work1-3 days of workspec:apispec:hrDESIGN_SPEC Section 8 - HR & Workforce ManagementDESIGN_SPEC Section 8 - HR & Workforce Managementtype:featureNew feature implementationNew feature implementationv0.5Minor version v0.5Minor version v0.5
Description
Context
PR #811 implements GET /api/v1/agents/{agent_name}/activity with support for lifecycle events (hired, fired, promoted, demoted, onboarded, offboarded, status_changed) and task completion events (task_completed).
Issue #772 originally specified 10 event types. The following 5 are not yet implemented because their underlying data sources are not persisted/accessible as queryable records:
Missing Event Types
-
task_started-- requires a task lifecycle event or start timestamp in TaskMetricRecord -
tool_used-- requires persisted tool invocation records -
delegation_sent-- requires persisted delegation event records -
delegation_received-- requires persisted delegation event records -
cost_incurred-- requires granular cost event records (beyond task-level cost in TaskMetricRecord)
Approach
Each event type needs:
- A persisted data source (new repository or extended existing one)
- A converter function in
hr/activity.py(like_lifecycle_to_activityand_task_metric_to_activity) - Integration into
merge_activity_timelineto accept the new data source - Controller update to fetch and pass the new data
- Unit tests for the converter and merged timeline
Parent
- feat: major web dashboard UX overhaul #762 (Dashboard rebuild)
- Related: feat: agent performance metrics and activity timeline endpoints #772 (original activity endpoint issue)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
prio:mediumShould do, but not blockingShould do, but not blockingscope:medium1-3 days of work1-3 days of workspec:apispec:hrDESIGN_SPEC Section 8 - HR & Workforce ManagementDESIGN_SPEC Section 8 - HR & Workforce Managementtype:featureNew feature implementationNew feature implementationv0.5Minor version v0.5Minor version v0.5