-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Parent Epic
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request