-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Parent Epic
Summary
Extend telemetry JSONL with structured activity events for all orchestrator mutations and agent lifecycle events.
Changes Required
terraphim_orchestrator
- New
activity.rsmodule withActivityEventenum and JSONL writer - Events to log:
ConfigChanged {before_hash, after_hash, changed_keys}BudgetWarning {agent, spent_cents, budget_cents, percentage}BudgetPaused {agent, spent_cents, budget_cents}AgentDriftDetected {agent, score, level, action_taken}AgentRestarted {agent, reason, restart_count, session_resumed}CompoundReviewCompleted {findings_count, pr_created, duration}ApprovalRequested {id, type, agent}ApprovalDecided {id, decision, actor}
- Schema:
{timestamp, event_type, agent_name, details: {}, actor: "system"|"human"|agent_name} - Write to
activity.jsonlin logs directory
Integration
- Replace ad-hoc
telemetry.jsonlwrites with structuredActivityEventemissions - Activity log is append-only, rotatable by external logrotate
Reference
- Paperclip activity log:
packages/db/src/schema/activity_log.ts - Paperclip activity service:
server/src/services/activity.ts
Acceptance Criteria
- All orchestrator mutations emit structured activity events
- Events written to
activity.jsonlwith consistent schema - Events include timestamp, event_type, agent_name, details
- Backward compatible with existing telemetry (can coexist)
-
adf activityCLI command to tail/query recent events
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request