
Stale Gate Janitor
Housekeep approval-gate files on a daily schedule so expired and old gates do not block agent workflows.
Overview
Stale Gate Janitor is an MCP server for the Operate phase that daily expires and archives stale files under data/approval-gates/ with Telegram alerts on changes only.
What is this MCP server?
- Daily 04:00 CT run over data/approval-gates/
- Expires pending gates past expires_at
- Archives gates older than 7 days
- Telegram notifications only when state changes
- Builder owner_agent profile for low-noise ops automation
- Schedule: daily 04:00 CT
- Archive rule: gates older than 7 days
- Scope directory: data/approval-gates/
What problem does it solve?
Pending approval gates pile up past their expiry and clutter directories until agents and humans cannot tell what still needs a decision.
Who is it for?
Solo builders using Daily AI OS approval gates who want set-and-forget housekeeping before morning work.
Skip if: Projects without data/approval-gates/ or teams that need real-time gate resolution instead of daily archival.
What do I get? / Deliverables
Gate folders stay trimmed on a fixed schedule and you only get pinged on Telegram when cleanup actually changed something.
- Expired pending gates past expires_at
- Archived gate files older than 7 days
- Telegram message when janitor changes gate state
Recommended MCP Servers
Journey fit
Operate infra is the right shelf because the job is recurring filesystem hygiene on approval gates, not building new product features. Infra subphase fits cron janitor work over data/approval-gates/, archival rules, and Telegram alerts only on change.
How it compares
Filesystem gate janitor MCP—not an approval UI or a security scanner.
Common Questions / FAQ
Who is stale-gate-janitor for?
Builders running approval-gate workflows in dailyai-os who need automatic expiry and archival without manual folder checks.
When should I use stale-gate-janitor?
Use it when data/approval-gates/ accumulates pending or old gates and you want a 04:00 CT daily cleanup with change-only Telegram alerts.
How do I add stale-gate-janitor to my agent?
Add the MCP server from the registry, confirm data/approval-gates/ paths, connect Telegram for on-change notifications, and enable the daily schedule.