Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Phase 3: Config revisions with rollback for ADF

Đang mở
#640 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
backend, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Parent Epic

#637

Summary

Version the orchestrator TOML config before each change, with CLI rollback capability.

Changes Required

terraphim_orchestrator
  • New config_history/ directory alongside orchestrator.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 timestamps
  • adf config rollback <timestamp> -- restore config from snapshot
  • adf config diff <timestamp> -- show diff between current and snapshot
  • Safety: refuse rollback if agents are actively running (or add --force flag)
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 history lists available snapshots
  • adf config rollback restores from snapshot
  • Old snapshots pruned automatically
  • Rollback blocked when agents running (unless --force)
Ngôn ngữ chính
Rust
Star
62
Fork
5
Merge trung bình
2 giờ 27 phút
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của terraphim/terraphim-ai

Tất cả issue của terraphim/terraphim-ai

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.