P8-014: Gateway Phase 6 — SessionGCService, all three GC tiers, /gc command #167

Closed
opened 2026-03-16 01:26:32 +00:00 by jason.woltje · 0 comments
Owner

Create SessionGCService implementing collect(sessionId), sweepOrphans(), and fullCollect(). Wire collect() into AgentService.destroySession(), /clear, and /new fresh. Run fullCollect() in onModuleInit (cold start). Add sweep GC cron job to CronService (SESSION_GC_CRON, default 0 4 * * *). Implement /gc slash command. Add GCResult/GCSweepResult/FullGCResult types.

Ref: docs/plans/2026-03-15-agent-platform-architecture.md (Session Garbage Collection section)

Wave 5 — depends on P8-010.

Create SessionGCService implementing collect(sessionId), sweepOrphans(), and fullCollect(). Wire collect() into AgentService.destroySession(), /clear, and /new fresh. Run fullCollect() in onModuleInit (cold start). Add sweep GC cron job to CronService (SESSION_GC_CRON, default 0 4 * * *). Implement /gc slash command. Add GCResult/GCSweepResult/FullGCResult types. Ref: docs/plans/2026-03-15-agent-platform-architecture.md (Session Garbage Collection section) Wave 5 — depends on P8-010.
jason.woltje added this to the Phase 8: Polish & Beta (v0.1.0) milestone 2026-03-16 01:26:32 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#167