Phase 3: Config revisions with rollback for ADF
還沒有人認領這個 Issue。
評估
研究方向
Start with the terraphim_orchestrator config handling and the ADF CLI bin crate, using orchestrator.toml and the requested config_history directory as the entry points. Review the referenced Paperclip files for revision patterns. Done means snapshots, listing, rollback, diff, pruning, and the running-agent safety rule all satisfy the acceptance criteria.
由索引模型根據 Issue 內容生成。
描述
Parent Epic
#637
Summary
Version the orchestrator TOML config before each change, with CLI rollback capability.
Changes Required
terraphim_orchestrator
- New
config_history/directory alongsideorchestrator.toml - Before applying any config change, snapshot current TOML to
config-history/YYYY-MM-DDTHH:MM:SS.toml - Keep last N snapshots (configurable, default 10)
- Prune older snapshots on each save
ADF CLI (bin crate)
adf config history-- list available snapshots with timestampsadf config rollback <timestamp>-- restore config from snapshotadf config diff <timestamp>-- show diff between current and snapshot- Safety: refuse rollback if agents are actively running (or add
--forceflag)
Config
[config_history]
max_snapshots = 10
history_dir = "/opt/ai-dark-factory/config-history"
Reference
- Paperclip config revisions:
packages/db/src/schema/agent_config_revisions.ts - Paperclip agent service:
server/src/services/agents.ts(buildConfigSnapshot, config revision tracking)
Acceptance Criteria
- Config snapshots saved before each change
-
adf config historylists available snapshots -
adf config rollbackrestores from snapshot - Old snapshots pruned automatically
- Rollback blocked when agents running (unless --force)
- 主要語言
- 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
-
難度 2/5 1-3 小時 新手友好度 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
難度 2/5 1-3 小時 新手友好度 84/100
-
難度 1/5 1 小時以內 新手友好度 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
難度 2/5 1-3 小時 新手友好度 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
難度 2/5 1-3 小時 新手友好度 68/100