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
- 星标
- 65
- 派生
- 5
- 平均合并
- 1 小时 17 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
terraphim/terraphim-ai 的其他 Issue
-
terraphim_rlm: require a per-sub-result verification plan (recheck / control / independent route)未关闭
难度 4/5 3-5 天 新手友好度 48/100
terraphim/terraphim-ai#969 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
terraphim/terraphim-ai#968 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
terraphim/terraphim-ai#967 ·
-
难度 4/5 3-5 天 新手友好度 48/100
terraphim/terraphim-ai#966 ·
-
难度 5/5 一周以上 新手友好度 30/100
terraphim/terraphim-ai#965 · 2 条评论 ·
查看 terraphim/terraphim-ai 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 80/100
Devolutions/picky-rs#546 · 1 条评论 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
zcashlabs/thus-spoke-zakura#153 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
topgrade-rs/topgrade#2395 ·
维护者通常 1 天内回复
-
app bug windows-os
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复