Phase 4: Structured activity log for ADF
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- cli, observability-sre
调研方向
Start with the proposed terraphim_orchestrator/activity.rs module and review the Paperclip activity log references at packages/db/src/schema/activity_log.ts and server/src/services/activity.ts. Trace existing telemetry.jsonl writes before defining the structured event integration. Done means orchestrator mutations emit consistent append-only activity.jsonl events, existing telemetry remains compatible, and the adf activity CLI command can tail or query recent events.
由索引模型根据 Issue 内容生成。
描述
Parent Epic
#637
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
- 主要语言
- Rust
- 星标
- 62
- 派生
- 5
- 平均合并
- 2 小时 27 分钟
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
terraphim/terraphim-ai 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
terraphim/terraphim-ai#885 ·
-
难度 4/5 3-5 天 新手友好度 55/100
terraphim/terraphim-ai#871 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
terraphim/terraphim-ai#810 · 2 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
terraphim/terraphim-ai#729 ·
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
terraphim/terraphim-ai#728 ·
查看 terraphim/terraphim-ai 的全部 Issue
相似的 Issue
-
risk:low runtime status:in-progress type:test
难度 1/5 1 小时以内 新手友好度 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 84/100
EricSpencer00/Resilient#4835 · 1 条评论 ·
-
agent:ready documentation
难度 2/5 1-3 小时 新手友好度 88/100
cesarferreira/stax#890 ·
-
bug
难度 1/5 1 小时以内 新手友好度 90/100