AI Pipelines
Archive Outputs Pipeline
Automated rotation of pipeline output files older than 7 days.
Archive Outputs Pipeline
The archive-outputs pipeline moves old output files from the knowledge vault to a dated archive folder, keeping the active output directory clean.
Quick Reference
| Field | Value |
|---|---|
| Trigger | archive-outputs (manual) or cron |
| Domain | Operations |
| Model | Haiku |
| Requires | Access to .output/ directory |
| Output | No output file — this is a maintenance task |
What It Does
- Checks
knowledge/.output/for files older than 7 days (by modification time) - Creates a dated archive folder:
~/agency-workspace/archive/archive-YYYY-MM-DD/ - Moves each old file to the archive, preserving subdirectory structure
- Removes moved files from git and commits the change
- Logs the count of moved files
Rules
- Only moves files older than 7 days
- Never deletes files — moves only
- Does not touch
.output/compiled/or.output/reports/directories - Never removes
.gitkeepfiles - If no files are older than 7 days, exits silently