Fold completed deltas into main specs (activity-feed, route-management, infrastructure, planner-session), add new background-jobs and demo-activity-bot capability specs, and move the three change dirs to openspec/changes/archive/. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
781 B
781 B
MODIFIED Requirements
Requirement: Session expiry
Open sessions with no activity for 7 days SHALL be automatically deleted by a scheduled background job.
Scenario: Stale session cleanup
- WHEN the hourly
expire-sessionscron job runs - THEN all sessions with
last_activityolder than 7 days are deleted from the database - AND their Yjs documents are removed from memory
Scenario: Active session preserved
- WHEN the
expire-sessionsjob runs - THEN sessions with
last_activitywithin the last 7 days are NOT deleted
Scenario: Cleanup is observable
- WHEN the
expire-sessionsjob completes - THEN the job output includes the count of expired sessions
- AND the result is visible in the Grafana job queue dashboard