feat(activities): implement log_run — T17

Inserts an ActivityRun row via the shared session factory.
Accepts run_payload dict with activity_id, scheduled_for (ISO-8601 or
None), context_snapshot, tasks_spawned, version_used.
Returns run_id as a str UUID.
fired_at is set server-side to now(UTC).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-26 22:19:12 +00:00
parent 6e24ef9d3b
commit 068780224e
2 changed files with 33 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ tasks:
state_hub_task_id: b7decbb6-ad2b-4fa5-8efc-05a7eb435d76
- id: T17
title: Implement log_run activity
status: todo
status: done
state_hub_task_id: e019cb5a-adf0-4a5d-9410-c41810128190
- id: T18
title: Implement RunActivityWorkflow