Phase 3: Config revisions with rollback for ADF

Offen
#640 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
rust
Bereich
backend, cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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)
Vorherrschende Sprache
Rust
Sterne
62
Forks
5
Ø Merge
2 Std. 27 Min.
Gemergte PRs (30 T.)
1

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus terraphim/terraphim-ai

Alle Issues in terraphim/terraphim-ai

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.